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-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?
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?