JPDev@programming.dev to Programmer Humor@programming.dev · 8 months agoReturns a sorted list in O(1) timeprogramming.devimagemessage-square27fedilinkarrow-up1292arrow-down114
arrow-up1278arrow-down1imageReturns a sorted list in O(1) timeprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square27fedilink
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up4·8 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.