Code Refacoring

This commit is contained in:
RitikDua
2020-10-01 21:32:44 +05:30
parent b4648f7b93
commit fdeda72805

View File

@ -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 ---------------------------------- */