From f164169f0740935851abb07116c25f3724bda7d5 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Thu, 24 Dec 2020 02:39:53 +0200 Subject: Update array_algorithms.cpp --- Sem. 11/array_algorithms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sem. 11/array_algorithms.cpp') diff --git a/Sem. 11/array_algorithms.cpp b/Sem. 11/array_algorithms.cpp index 9859162..ed8d664 100644 --- a/Sem. 11/array_algorithms.cpp +++ b/Sem. 11/array_algorithms.cpp @@ -38,7 +38,7 @@ int binarySearch(const int* arr, int len, int searched) return midIndex; if (arr[midIndex] > searched) rightIndex = midIndex - 1; - else //< + else leftIndex = midIndex + 1; } return -1; -- cgit v1.3.1-23-gd82d