diff --git a/searches/binary_search.py b/searches/binary_search.py index bec87b3c5aec..83422cd24bfa 100644 --- a/searches/binary_search.py +++ b/searches/binary_search.py @@ -432,3 +432,4 @@ def exponential_search(sorted_collection: list[int], item: int) -> int: print(f"{target} was not found in {collection}.") else: print(f"{target} was found at position {result} of {collection}.") +`n# Note: Binary search requires the array to be sorted before execution.