Skip to content

Commit c826866

Browse files
Update README.md
1 parent 4647b42 commit c826866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ public static void radixSort(int[] arr){
760760
System.out.println("maxDigit: " + maxDigit);
761761

762762
//申请一个桶空间
763-
int[][] buckets = new int[10][arr.length-1];
763+
int[][] buckets = new int[10][arr.length];
764764
int base = 10;
765765

766766
//从低位到高位,对每一位遍历,将所有元素分配到桶中

0 commit comments

Comments
 (0)