Chippys_mittens@lemmy.world to memes@lemmy.world · 2 months agoGenies hate this one simple tricklemmy.worldimagemessage-square111fedilinkarrow-up1845arrow-down113
arrow-up1832arrow-down1imageGenies hate this one simple tricklemmy.worldChippys_mittens@lemmy.world to memes@lemmy.world · 2 months agomessage-square111fedilink
minus-squareBatman@lemmy.worldlinkfedilinkarrow-up10·2 months agoOnly have to guess 10 times the number of digits though, quite doable for a lottery win!
minus-squareMousePotatoDoesStuff@lemmy.worldlinkfedilinkarrow-up2·2 months ago Batman Username checks out. I’d expect nothing less from the DC world’s greatest detective.
minus-squarettyybb@lemmy.worldlinkfedilinkarrow-up2·edit-22 months 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·2 months agoI like your thinking, but a binary search would require us to know whether our guess is too high or low, no?
minus-squareAxolotl@feddit.itlinkfedilinkarrow-up1·edit-22 months agoYou can make a random number generator and start reading the numbers, if you can say them, you are right, easy, you don’t even need to think at that point
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?
You can make a random number generator and start reading the numbers, if you can say them, you are right, easy, you don’t even need to think at that point