Comment on Programmer tries to explain binary search to the police
Sagifurius@lemm.ee 1 year agoThat’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.
Sagifurius@lemm.ee 1 year ago
Well I meant to write 3 groups of four. Sane general thought just adjust the logic somewhat