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

Those 11 lines of reimplemented bsearch are correct.


Oh, I'm sure they are, purely based on who wrote them...but in any ordinary codebase I'd toss this code out in a second and replace it with a library call. It's just not worth the effort to decide whether it's correct -- like not bothering to bend over to pick up a lost penny.




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

Search: