andioop@programming.dev to Programming Horror@programming.devEnglish · edit-29 months agoGod I wish there was an easier way to do thisprogramming.devimagemessage-square55fedilinkarrow-up1215arrow-down121
arrow-up1194arrow-down1imageGod I wish there was an easier way to do thisprogramming.devandioop@programming.dev to Programming Horror@programming.devEnglish · edit-29 months agomessage-square55fedilink
minus-squarenoddy@beehaw.orglinkfedilinkarrow-up13·9 months agoI know an even better way. We can make it run in O(1) by using a lookup table. We only need to store 2^64 booleans in an array first.
I know an even better way. We can make it run in O(1) by using a lookup table. We only need to store 2^64 booleans in an array first.