alphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 1 year agoO of what nowsh.itjust.worksexternal-linkmessage-square6fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1external-linkO of what nowsh.itjust.worksalphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square6fedilink
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up1·1 year agoAcshually, in the context of O(N^2) N can be seen to constantly be equal to N and thus, as a constant, we can ignore it in our O analysis. Yes, my bubble sort does run in O(1)
Acshually, in the context of O(N^2) N can be seen to constantly be equal to N and thus, as a constant, we can ignore it in our O analysis.
Yes, my bubble sort does run in O(1)