4 ms·
1) All four versions are O(1) 2) Textually interleaving two implementations is bad no matter what language you're in 3) You could achieve the same effect with
by gp7 10y ago
1) All four versions are O(1)
2) Textually interleaving two implementations is bad no matter what language you're in
3) You could achieve the same effect with gotos without giving anyone a migraine... but it still wouldn't be worth it