From 35cfbe18f92f8475ca91f5295136d60836ef5ec9 Mon Sep 17 00:00:00 2001 From: Jags-08 Date: Tue, 12 May 2026 13:40:35 +0530 Subject: [PATCH] docs: add sorted array prerequisite note to binary search --- searches/binary_search.py | 1 + 1 file changed, 1 insertion(+) 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.