Hacker News new | ask | show | jobs
by yau8edq12i 788 days ago
Unless the number of "else if" statements somehow grows e.g. linearly with the size of your input, which isn't plausible, the "else if" statements also execute in O(1) time.