mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
Code Refacoring
This commit is contained in:
@ -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 ---------------------------------- */
|
||||
|
Reference in New Issue
Block a user