@JPDev@programming.dev to Programmer Humor@programming.dev • 10 months agoReturns a sorted list in O(1) timeprogramming.devimagemessage-square25fedilinkarrow-up1251arrow-down112
arrow-up1239arrow-down1imageReturns a sorted list in O(1) timeprogramming.dev@JPDev@programming.dev to Programmer Humor@programming.dev • 10 months agomessage-square25fedilink
minus-square@andnekon@programming.devlinkfedilink2•10 months ago50/50 would be for isOdd with the same implementation
50/50 chance of being right in O(1) time
It’s right much more often than just 50/50.
50/50 would be for
isOdd
with the same implementation