cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agotimeoutSortimagemessage-square36linkfedilinkarrow-up1481arrow-down13cross-posted to: programmerhumor@lemmy.ml
arrow-up1478arrow-down1imagetimeoutSortcm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square36linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarefilcuk@lemmy.ziplinkfedilinkarrow-up35·2 months agoAs added benefit, you can then opyimise the code by dividing the number by 2, making it twice as fast. Think of the savings!
minus-squarelugal@lemmy.dbzer0.comlinkfedilinkarrow-up5·2 months agoBetter yet: take the square root and you get a sub-linear run time
As added benefit, you can then opyimise the code by dividing the number by 2, making it twice as fast. Think of the savings!
Better yet: take the square root and you get a sub-linear run time