We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5fec12 commit 4f8ccddCopy full SHA for 4f8ccdd
1 file changed
algorithms/search/search_rotate.py
@@ -37,9 +37,6 @@
37
Recursion helps you understand better the above algorithm explanation
38
"""
39
def search_rotate(array, val):
40
- if not array:
41
- return -1
42
-
43
low, high = 0, len(array) - 1
44
while low <= high:
45
mid = (low + high) // 2
0 commit comments