How would you find the heaviest marble if you are only allowed to weigh the marbles 2 times.
You have eight marbles and a two pan balance.
All of the marbles weigh the same except for one which is heavier than all of the others.
Instead you have to compare one of them l say with an ordinary marble like a just as was done in the case of 12 marbles.
All of the marbles weigh the same except for one which is heavier than all of the others.
All the marbles weigh the same except for one which is heavier than all the others.
You may make no assumptions about how much heavier the heavy marble is.
Microsoft suppose you have 11 marbles and a two pan balance used to compare the weight of 2 things.
One of them is heavier than the rest of the 7 all the others weigh exactly the same.
How would you find the heaviest marble if you are only allowed to weigh the marbles 2 times using the balance scale.
If you have only one balance available sketch the results of the first pan balance situation on the board before setting up the second balance.
Set up the second pan balance.
Find the heavier ball.
All of the marbles look the same.
You a provided with a simple mechanical balance and you are restricted to only 2 uses.
With 13 marbles however neither l nor m have been on the balance yet.
Software development engineering interview seattle wa.
Divider scroll down for the solution.
The marbles are otherwise indistinguishable.
A balance puzzle or weighing puzzle is a logic puzzle about balancing items often coins to determine which holds a different value by using balance scales a limited number of times.
Let s say you have 8 marbles and a two pan balance.
Add paper clips to the other pan one at a time counting as you go until the pans balance.
You are given 8 identical looking balls.
These differ from puzzles that assign weights to items in that only the relative mass of these items is relevant.
You have eight marbles and a two pan balance.
Place a protractor and ruler in one pan.
First we weigh 1 2 3 on the left and.
Each marble weighs 2 0 grams except for one which is slightly heavier at 2 05 grams.
Suppose you have 8 marbles and a two pan balance used to compare the weight of 2 things.
What is the minimum number of weighings needed to be certain of identifying the heavy marble.
All of the marbles weigh the same except for one which is heavier than all of the others.