From fdeda728054d910978ff69e97924d2358cd4da83 Mon Sep 17 00:00:00 2001 From: RitikDua Date: Thu, 1 Oct 2020 21:32:44 +0530 Subject: [PATCH] Code Refacoring --- Search/BinarySearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Search/BinarySearch.js b/Search/BinarySearch.js index d17804fc6..4d4789d65 100644 --- a/Search/BinarySearch.js +++ b/Search/BinarySearch.js @@ -46,7 +46,7 @@ function binarySearchIterative (arr, x, low = 0, high = arr.length - 1) { } } // if low > high => we have searched the whole array without finding the item - return -1 + return -1 } /* ---------------------------------- Test ---------------------------------- */