1 Star 0 Fork 2.1K

damiy/activity-school

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
15372338.java 326 Bytes
Copy Edit Raw Blame History
enkilee authored 2024-03-04 11:27 . 添加排序代码
/**
* 冒泡排序函数
* aa bb cc
* @param a 待排序的数组
* @param n 待排序的数组长度
*/
public static void bubbleSort(int [] a, int n){
for(int i = 0; i < n-1 ; i++){
for (int j = 0;j < n-1-i;j++){
if(a[j] > a[j+1]){
int temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
}
}
}
} //end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/damiy/activity-school.git
git@gitee.com:damiy/activity-school.git
damiy
activity-school
activity-school
master

Search

0d507c66 1850385 C8b1a773 1850385