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

You halve the remaining length each time there is a match and only exit the loop when length is 0 so it should be the first one.


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

Search: