@[email protected] to [email protected]English • 2 months agoRulelemmy.blahaj.zoneimagemessage-square57fedilinkarrow-up1386arrow-down16
arrow-up1380arrow-down1imageRulelemmy.blahaj.zone@[email protected] to [email protected]English • 2 months agomessage-square57fedilink
minus-square@[email protected]linkfedilink17•2 months agoWhen you sacrifice memory for an O(1) algorithm. In this case still O(n)
When you sacrifice memory for an O(1) algorithm.
In this case still O(n)
Smh this is literally what switch statements are for