Skip to content

Commit 9775849

Browse files
Menambahkan fitur baru (bregman-arie#10560)
1 parent 9a1d1e7 commit 9775849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coding/python/binary_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def binary_search(arr: List[int], lb: int, ub: int, target: int) -> int:
1717
else:
1818
return binary_search(arr, lb, mid - 1, target)
1919
else:
20-
return -1
20+
return 0
2121

2222

2323
if __name__ == '__main__':

0 commit comments

Comments
 (0)