+1-315-215-3377
+91-9980992834

Technical Interview Question on Puzzles – The Ultimate Balance Puzzle

Recruitment Made Easy

ultimate-balance-puzzle

The Ultimate Balance Puzzle

There are 12 balls, one of which is different in weight (can be heavier or lighter)
Find the oddball using less than 3 weightings of the balance

The Solution FlowChart

Assume that the balls are identified as b1, b2, … b12. If we determine that a ball is normal, it will be relabeled ‘N’. If we suspect that a ball could potentially be heavier, let’s add a superscript ‘h’ to its label. If we suspect that a ball could potentially be lighter than normal, let’s add a superscript ‘l’ to its label.
balance-puzzle-solution-flowchart

This content was brought to you by Evalground Online Testing PlatformEvalground is an online assessment and test evaluation system focused on helping Recruiters in initial screening of potential candidates from an ocean of job seekers in an automated way.
Evalground supports Online Aptitude Tests, Spoken English Communication Skills AssessmentsCoding Contests in JAVA, C, C++, Ruby, Python, JavaScript and PHP.  Evalground also supports Automated asynchronous interviews. Evalground Screening Tests can be used by Recruiters during campus hiring or to screen walkin candidates.

Sharing is caring!