mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
leetcode problem
This commit is contained in:
parent
aa70e3fb2e
commit
21f7b64c49
@ -27,7 +27,7 @@ def search_range(nums: list[int], target: int) -> list[int]:
|
||||
[1, 1]
|
||||
"""
|
||||
|
||||
def binary_search(nums:list, target:int, left:bool) -> list[int]:
|
||||
def binary_search(nums:list, target:int, left:bool) -> int:
|
||||
"""
|
||||
>>> binary_search([1, 2, 3, 4, 5], 3, leftmost=True)
|
||||
2
|
||||
|
Loading…
Reference in New Issue
Block a user