minus-squareistdaslol@feddit.orglinkfedilinkarrow-up18·2 months agoWhen you sacrifice memory for an O(1) algorithm. In this case still O(n)
minus-squareZangoose@lemmy.worldlinkfedilinkarrow-up6·2 months agoSmh this is literally what switch statements are for
When you sacrifice memory for an O(1) algorithm.
In this case still O(n)
Smh this is literally what switch statements are for