Optimized scripts

This commit is contained in:
Angelos Chalaris
2018-02-04 20:16:04 +02:00
parent c37df3ee82
commit 35eb0d1cb8
8 changed files with 15 additions and 27 deletions

View File

@ -5,4 +5,4 @@ if (arr[mid] > val) return binarySearch(arr, val, start, mid - 1);
if (arr[mid] < val) return binarySearch(arr, val, mid + 1, end);
return mid;
};
module.exports = binarySearch;
module.exports = binarySearch;