21 ms·
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 cli
by quickthrower2 3y ago
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
- benj111 3y agoIs 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.