Skip to content

Commit ac0008a

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sorts/binarysearch_on_sorted_2d_array.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ def binary_search_2d(matrix: list[list[int]], target: int) -> tuple[int, int]:
3333
"""
3434
if not matrix or not matrix[0]:
3535
raise ValueError("matrix must not be empty")
36-
36+
3737
rows = len(matrix)
3838
cols = len(matrix[0])
39-
39+
4040
for row in matrix:
4141
if len(row) != cols:
4242
raise ValueError("matrix must be rectangular")
43-
43+
4444
left, right = 0, rows * cols - 1
4545

4646
while left <= right:

0 commit comments

Comments
 (0)