Learn how to solve challenging brain teaser coding problems and prep for your technical interview.
Albert and Bernard became friends with Cheryl, and they want to know when her birthday is. Cheryl gives them a list of 10 possible dates.
|May 15||May 16||May 19|
|June 17||June 18|
|July 14||July 16|
|August 14||August 15||August 17|
Cheryl then tells Albert and Bernard separately the month and day of her birthday respectively.
So when is Cheryl's birthday?
You are given 9 balls. 8 of them weigh the same while 1 is heavier than the others. How can you determine which ball is the odd one out using just two comparisons?