| title | Algorithm4 Java Solution 1.4.10 | ||
|---|---|---|---|
| date | 2019-08-06 15:54:00 +0800 | ||
| draft | false | ||
| tags |
|
||
| categories |
|
Modify binary search so that it always returns the element with the smallest index that matches the search element (and still guarantees logarithmic running time).
code: