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