¶Binary search
1 | def binary_search_recursion(list1, val, low, high): |
¶bisect search
Much faster way
1 | import bisect |
¶numpy searchsorted
Used in numpy array
1 | data = np.arrange(0, 1000) |
1 | def binary_search_recursion(list1, val, low, high): |
Much faster way
1 | import bisect |
Used in numpy array
1 | data = np.arrange(0, 1000) |