mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-01-31 23:51:28 +08:00
Formatted with Google Java Formatter
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user