Divide the balls in 3 groups with 3 balls each.
if(wightofgrp1==wgthgrp2)
{
take 3group
if(wtof 1 ball==wtof2nd ball ) //of 3rd grp)
{
then the left one is heavier
}
else the one that wighs is hevier
}
else
{
wight for the heavier group by taking 1st against 2nd
if(wgtof 1st==wt of 2nd)
{
then the left 3rd of the heavier grp is heavy
}
else the one that is heavier in pan is heavier..........
}
thats alll...........take 2 times to get the result
On Fri, Mar 25, 2011 at 1:16 PM, Lavesh Rawat <[email protected]>wrote:
>
>
> *Weighing Problem Solution*
> *
> *There are 9 similar balls. Eight of them weigh the same and the ninth is
> a bit heavier.
> How would you identify the heavier ball if you could use a two-pan balance
> scale only twice?
>
> Update Your Answers at : Click
> Here<http://dailybrainteaser.blogspot.com/2011/03/25march.html?lavesh=lavesh>
>
> Solution:
> Will be updated after 1 day
>
>
> Soln
>
>
> --
> Posted By lavesh to brain teaser
> solutions<http://solution-dailybrainteaser.blogspot.com/2011/03/25march.html>at
> 3/25/2011 12:01:00 AM
>
>
>
> --
>
> "Never explain yourself. Your friends don’t need it and
> your enemies won’t believe it" .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
--
Kumar Anurag
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.