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

The author says at the beginning that it’s not actually better than the loop.

Also 6 comparisons is only if you’d have the max value which seems unlikely in actual usage. Linear could be better if most of the time values are in B or KB ranges



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

Search: