Hello

It was easy. You have to  look only the number of black balls. If it is odd, 
the last ball will always be black, and if it is even the last ball will 
always be white.

Regards

--------------------------------------------------
From: <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2008 8:44 PM
To: "google-codejam" <[email protected]>
Subject: the old magic trick

>
> Hi All of you
> I would like to know the  algorithm used to solve the problem of the
> 'old magician'(Question no1) that was in the practice test held on
> saturday.I hope you may help me with this.
>
> > 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" 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/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to