Comment on Programmer tries to explain binary search to the police

<- View Parent
Mr_Dr_Oink@lemmy.world ⁨11⁩ ⁨months⁩ ago

How do you solve that? I saw a solution in the comments where it says to start with numbering all the people and butting 1234 and 5678 on the see saw, then it says if they weight the same then continue and that seems to work. But if they dont weigh the same it doesnt work and it doesnt say what to do in that case.

source
Sort:hotnewtop