ERROR COLLECTION | BubbleSort
今日错题
老师的代码:
public static void bubbleSort(int[] arr) {
if (arr == null || arr.length < 2) {
return;
}
// 0 ~ N-1
// 0 ~ N-2
// 0 ~ N-3
for (int e = arr.length - 1; e > 0; e--) { // 0 ~ e
for (int i = 0; i <
原创
2021-07-29 10:51:52 ·
89 阅读 ·
0 评论