Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
asgs106332y1. 3 balls on each side of the scale. If the scale is leveled, then the 7th ball is the heaviest
2. If one side is tilted, then that side has the heaviest. So use the scale again placing one ball on each side. If the scale is leveled, the 3rd is heaviest. Otherwise, the ball which caused the tilt is the heaviest -
monrichi8822y@siebe it wasn't a long time ago. I remember I got the answer in the end and they gave me a hint. Don't remember what it was.
-
Nanos110872yHit the interviewer with the scales and tell them if they don't tell you the answer, you will hit them again..
If they don't tell you the second time, you hit them so hard it makes them bleed / die, and then when someone else comes in the room, you say to them, if you don't tell me, the same thing will happen to you too !
I'm pretty sure they will tell you the answer and it only took you two uses of the scales to find it out. :-) -
I raise you:
- 12 balls
- 1 of them is heavier OR lighter than the others
- weighing with a scale is allowed 3 times
Find out which ball is different from the others AND tell for sure if it is lighter or heavier than the others.
Related Rants
-
dfox3My favorite kind of interview question/challenge is anything that is highly practical for the job. At the curr...
-
opengenus10Interviewer: How will you solve the travelling salesman problem? Me: *explains the solution on whiteboard* I...
-
karma11Please make an entire webshop with animated shopping cart in react + redux within a week 👍 We will then re...
Not a coding challenge, it was more of a logical problem.
"You are given 7 ball, all equal in size but one is slightly heavier than the other 6. You have to find the heaviest ball and you are allowed to use the scale only twice."
rant
riddle
wk192