JPDev@programming.dev to Programmer Humor@programming.dev · 9 months agoReturns a sorted list in O(1) timeprogramming.devimagemessage-square20fedilinkarrow-up1271
arrow-up1258imageReturns a sorted list in O(1) timeprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 9 months agomessage-square20fedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comlinkfedilinkarrow-up11·9 months agoBesides the obvious flaws… is that parameter a list named list, shadowing the list() constructor?
minus-squareinfinitepcg@lemmy.worldlinkfedilinkarrow-up5·9 months agoIt works as long as you don’t call list() within that function.
Besides the obvious flaws… is that parameter a list named
list
, shadowing thelist()
constructor?It works as long as you don’t call
list()
within that function.