Skip to content

Commit 46f2e3d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8b710ef commit 46f2e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searches/binary_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def binary_search(sorted_collection: list[int], item: int) -> int:
200200
"""
201201
# Use bisect_left to find the leftmost position
202202
index = bisect_left(sorted_collection, item)
203-
203+
204204
# Check if the item exists at that position
205205
if index != len(sorted_collection) and sorted_collection[index] == item:
206206
return index

0 commit comments

Comments
 (0)