Color of last ball II Puzzle-Asked in interviews.


You have 20 blue balls and 13 red balls in a bag.
You put your hand in and remove 2 at a time.

If they’re of the same color, you add a blue ball to the bag.

If they’re of different colors, you add a red ball to the bag.

Assume you have a big supply of blue & red balls for this purpose.

Solution: Red Ball

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store