Coding style fixes and improvements

This commit is contained in:
Angelos Chalaris
2018-02-04 17:58:57 +02:00
parent 4c35266581
commit 1006da6fa5
19 changed files with 30 additions and 51 deletions

View File

@ -4,5 +4,5 @@ const mid = Math.floor((start + end) / 2);
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;