Skip to content

Commit 4f8ccdd

Browse files
arnavbkeon
authored andcommitted
Initial check at beginning of function is useless (keon#403)
1 parent f5fec12 commit 4f8ccdd

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

algorithms/search/search_rotate.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
Recursion helps you understand better the above algorithm explanation
3838
"""
3939
def search_rotate(array, val):
40-
if not array:
41-
return -1
42-
4340
low, high = 0, len(array) - 1
4441
while low <= high:
4542
mid = (low + high) // 2

0 commit comments

Comments
 (0)