@@ -0,0 +1,587 @@
+package io.xkniu.github.tiny.core.algorithm.search;%0A%0Apublic class BinarySearcher implements Searcher %7B%0A%0A    @Override%0A    public int search(int%5B%5D a, int value) %7B%0A        return search0(a, value);%0A    %7D%0A%0A    /**%0A     * C++ STL lower_bound %E7%9A%84%E5%86%99%E6%B3%95%0A     */%0A    private int search0(int%5B%5D a, int value) %7B%0A        int l = 0;%0A        int r = a.length;%0A%0A        while (l %3C r) %7B%0A            int mid = l + (r - l) / 2;%0A%0A            if (a%5Bmid%5D %3C value) %7B%0A                l = mid + 1;%0A            %7D else %7B%0A                r = mid;%0A            %7D%0A        %7D%0A%0A        return r == a.length ? -1 : r;%0A    %7D%0A%7D%0A

Add binary search