Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unless you are in a very hot path and know with absolute certainty that n will remain very low, I'd say you are doing clear premature optimization by comparing and choosing the O(n^2).

I say very small because to me, n=10_000 sounds like a number that could easily and quickly grow higher since yoy are past a basic enumeration of a few choices.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: