From f197fa38e3bcde5782291c7210b403cba84b11fc Mon Sep 17 00:00:00 2001 From: Divide-et-impera-11 <54957167+Divide-et-impera-11@users.noreply.github.com> Date: Sat, 30 Nov 2019 21:15:03 +0100 Subject: [PATCH] Update exponential_search.cpp --- Search/exponential_search.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Search/exponential_search.cpp b/Search/exponential_search.cpp index 13ed28d6f..90ce27409 100644 --- a/Search/exponential_search.cpp +++ b/Search/exponential_search.cpp @@ -26,10 +26,10 @@ template Type* Struzik_Search(Type* array, size_t size, Type key) { return nullptr; } int main() { - int *sorted_array = new int[7]{7, 10, 15, 23, 70, 105, 203}; - assert(Struzik_Search(sorted_array, 7, 0) == nullptr); - assert(Struzik_Search(sorted_array, 7, 1000) == nullptr); - assert(Struzik_Search(sorted_array, 7, 50) == nullptr); - assert(Struzik_Search(sorted_array, 7, 7) == sorted_array); +int *sorted_array = new int[7]{7, 10, 15, 23, 70, 105, 203}; +assert(Struzik_Search(sorted_array, 7, 0) == nullptr); +assert(Struzik_Search(sorted_array, 7, 1000) == nullptr); +assert(Struzik_Search(sorted_array, 7, 50) == nullptr); +assert(Struzik_Search(sorted_array, 7, 7) == sorted_array); return EXIT_SUCCESS; }