Hacker News new | past | comments | ask | show | jobs | submit login

If you don't want to think, do a binary search.

Algo:

    * Start at the left most number
    * Click the number
    * If the result is higher than target click again to turn it off
    * Move right, back to step 2



Is that a binary search (other than literally being a binary search)?

For a proper binary search you should right nextdigit+first digit/2, if you're going backwards.




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

Search: