diff --git a/algorithms/search/search_rotate.py b/algorithms/search/search_rotate.py index ade027082..a92a15ee3 100644 --- a/algorithms/search/search_rotate.py +++ b/algorithms/search/search_rotate.py @@ -37,9 +37,6 @@ Recursion helps you understand better the above algorithm explanation """ def search_rotate(array, val): - if not array: - return -1 - low, high = 0, len(array) - 1 while low <= high: mid = (low + high) // 2