Hacker News new | ask | show | jobs
by adrianN 957 days ago
Both the switch and the if have O(1) instructions, so both are the same from an algorithmic complexity perspective.