mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-19 17:54:42 +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:
@ -64,7 +64,7 @@ class QuickSort implements SortAlgorithm {
|
||||
**/
|
||||
|
||||
private static <T extends Comparable<T>> int partition(T[] array, int left, int right) {
|
||||
int mid = (left + right) / 2;
|
||||
int mid = (left + right) >>> 1;
|
||||
T pivot = array[mid];
|
||||
|
||||
while (left <= right) {
|
||||
|
Reference in New Issue
Block a user