Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 11 / array_algorithms.cpp
diff options
context:
space:
mode:
Commitf164169f0740935851abb07116c25f3724bda7d5 (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-12-24 02:39:53 +0200
Committer
 GitHub <noreply@github.com>
2020-12-24 02:39:53 +0200
Files901427f37c37cc036d0d43c220105d17d65ac588 /Sem. 11/array_algorithms.cpp
Introduction_to_programming_FMI-f164169f0740935851abb07116c25f3724bda7d5.tar
Introduction_to_programming_FMI-f164169f0740935851abb07116c25f3724bda7d5.tar.gz
Introduction_to_programming_FMI-f164169f0740935851abb07116c25f3724bda7d5.zip
Parent4eff5ff4604eb401cdcfda019867ff295e590857 (diff)
Update array_algorithms.cpp
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Sem. 11/array_algorithms.cpp2
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;