add to gothib
This commit is contained in:
commit
523f45b46a
28 changed files with 419 additions and 0 deletions
5
binary_search_example.py
Normal file
5
binary_search_example.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from bisect import bisect_left
|
||||
|
||||
items = [5, 8, 2, 3]
|
||||
|
||||
print(bisect_left(sorted(items), 2))
|
Loading…
Add table
Add a link
Reference in a new issue