Formatted with Google Java Formatter
This commit is contained in:
parent
b8707e61cb
commit
8cece6c399
@ -45,7 +45,7 @@ class BinarySearch implements SearchAlgorithm {
|
||||
if (right < left) return -1; // this means that the key not found
|
||||
|
||||
// find median
|
||||
int median = left + ((right-left) >>> 1);
|
||||
int median = left + ((right - left) >>> 1);
|
||||
int comp = key.compareTo(array[median]);
|
||||
|
||||
if (comp == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user