Comment on Programmer tries to explain binary search to the police
Mr_Dr_Oink@lemmy.world 1 year agoThe question was to find who doesnt weigh the same and if its heavier or lighter. Watch the clip again.
Comment on Programmer tries to explain binary search to the police
Mr_Dr_Oink@lemmy.world 1 year agoThe question was to find who doesnt weigh the same and if its heavier or lighter. Watch the clip again.
Sagifurius@lemm.ee 1 year ago
That’s easy enough to answer, but he really should work on his grammar. In that case you just do 3 groups of three, weigh two of them. If they’re even, the third group is different. Weigh 2 membres of the third group, they’ll either be even or one heavier. Weight the last member against the heavier one from step 2 to see if they’re even or not for your answer.
Mr_Dr_Oink@lemmy.world 1 year ago
Thats 4 uses of the seesaw. It has to be 3.
Sagifurius@lemm.ee 1 year ago
That three dude
Mr_Dr_Oink@lemmy.world 1 year ago
Im sorry when i read weigh two of them i counted it as two separate weighings of two sets of groups. My bad.