JPDev to Programmer Humor · 11 months agoReturns a sorted list in O(1) timeimagemessage-square27fedilinkarrow-up1294arrow-down114
arrow-up1280arrow-down1imageReturns a sorted list in O(1) timeJPDev to Programmer Humor · 11 months agomessage-square27fedilink
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up5·11 months agoI set k to 50,000,000,000… that’s more items than my shitty computer can fit in memory (including swsp) but I am now happy to celebrate my O(1) algorithm.
I set k to 50,000,000,000… that’s more items than my shitty computer can fit in memory (including swsp) but I am now happy to celebrate my O(1) algorithm.