Work in HR or Recruiting?
Oracle
Redwood City, CA 5000+ Employees
Work in HR? Complete Your Profile

443 interview experiences Back to all Oracle Interview Questions & Reviews

Interview Question for Senior Software Engineer at Oracle:
Mar 4, 2013

1 of 1 people found this helpful

You have 10 boxes of balls (each ball weighing exactly10 gm) with one box with defective balls (each one of the defective balls weigh 9 gm). You are given an electronic weighing machine and only one chance at it. How will find out which box has the defective balls?


Add Tags [?]

See more for this Oracle Senior Software Engineer Interview

Helpful Question?  
Yes | No
Inappropriate?

Answers & Comments (1)

Mar 7, 2013

by devpaul:

Take 1 ball out of the 1st box, 2 balls out of the 2nd, 3 balls out of the 3rd, etc.... and then weigh all of the balls. Then take the total weight = 10*total number balls + x. Solve for x and that will tell you which box is defective.
Helpful Answer?  
Yes | No
Inappropriate?

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.