Chippys_mittens@lemmy.world to memes@lemmy.world · 18 days agoGenies hate this one simple tricklemmy.worldimagemessage-square52fedilinkarrow-up1509arrow-down110
arrow-up1499arrow-down1imageGenies hate this one simple tricklemmy.worldChippys_mittens@lemmy.world to memes@lemmy.world · 18 days agomessage-square52fedilink
minus-squareBatman@lemmy.worldlinkfedilinkarrow-up7·18 days agoOnly have to guess 10 times the number of digits though, quite doable for a lottery win!
minus-squareMousePotatoDoesStuff@lemmy.worldlinkfedilinkarrow-up2·18 days ago Batman Username checks out. I’d expect nothing less from the DC world’s greatest detective.
minus-squarettyybb@lemmy.worldlinkfedilinkarrow-up2·edit-217 days agoYour poorly optimizing. With a linear search, you only need 9 per digit, a binary search will get it all done in like 4 or 5 guesses
minus-squareBatman@lemmy.worldlinkfedilinkarrow-up1·17 days agoI like your thinking, but a binary search would require us to know whether our guess is too high or low, no?
Only have to guess 10 times the number of digits though, quite doable for a lottery win!
Username checks out. I’d expect nothing less from the DC world’s greatest detective.
Your poorly optimizing. With a linear search, you only need 9 per digit, a binary search will get it all done in like 4 or 5 guesses
I like your thinking, but a binary search would require us to know whether our guess is too high or low, no?