排序算法小结(给我一个offer吧)
排序算法小结
冒泡排序
package com.company;
public class bubblingSort {
public static void main(String[] args) {
int[] nums={1,3,4,5,7,2,4,5,6};
sort(nums);
for (int i = 0; i < nums.length; i++) {
System.out.print(nums[i]+"
原创
2020-10-05 17:05:31 ·
97 阅读 ·
0 评论