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

I haven't tried, but I would expect doing the linear search in the reverse direction will be faster than binary search. It, on average, inspects just two values; binary search does about five.


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

Search: