The Picard Maneuver@startrek.website to Programmer Humor@programming.dev · 1 年前Programmer tries to explain binary search to the policestartrek.websiteimagemessage-square392fedilinkarrow-up12.51Karrow-down111cross-posted to: [email protected]
arrow-up12.5Karrow-down1imageProgrammer tries to explain binary search to the policestartrek.websiteThe Picard Maneuver@startrek.website to Programmer Humor@programming.dev · 1 年前message-square392fedilinkcross-posted to: [email protected]
minus-squarestockRot@lemmy.worldlinkfedilinkarrow-up4arrow-down14·1 年前Ever heard of a logarithm? If you haven’t, you just reinvented it. Also, your math is wrong: log base 2 of 200,000 is ~18
minus-squareCoderKat@lemm.eelinkfedilinkEnglisharrow-up15·edit-21 年前You did 200k years. You need to do 200k years as seconds (the 6.311e12 they mentioned). Their math is right. Not sure why you’re acting like they claimed to invent the logarithm, either…
Ever heard of a logarithm? If you haven’t, you just reinvented it.
Also, your math is wrong: log base 2 of 200,000 is ~18
You did 200k years. You need to do 200k years as seconds (the 6.311e12 they mentioned). Their math is right.
Not sure why you’re acting like they claimed to invent the logarithm, either…