mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong.
This commit is contained in:
@@ -40,7 +40,7 @@ public final class IterativeBinarySearch implements SearchAlgorithm {
|
||||
r = array.length - 1;
|
||||
|
||||
while (l <= r) {
|
||||
k = (l + r) / 2;
|
||||
k = (l + r) >>> 1;
|
||||
cmp = key.compareTo(array[k]);
|
||||
|
||||
if (cmp == 0) {
|
||||
|
||||
Reference in New Issue
Block a user