题解 1738: 排序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

八种排序算法(python实现)

摘要:""" 以下是八种升序排序算法模板 分为初级排序算法和高级排序算法 初级排序算法:插入排序,选择排序,冒泡排序 高级排序算法:归并排序,快速排序,希尔排序,堆排序,桶排序 时间复杂度: ……

1738: 排序 -python快速排序

摘要:注意事项: 注意输入输出参考代码:# 快速排序_升序_python def quick_sort(nums):     # 数组中小于两个元素 不用排序     if len(nums) <= ……

1738: 排序 -python归并排序

摘要:注意事项: 注意输入输出参考代码:# 归并排序_升序 def merge_sort(nums):     # 待排序数组只有一个元素 => 无需排序 返回     if len(nums) <=……

冒泡排序法C语言

摘要:解题思路:冒泡排序法注意事项:注意i和j的使用。参考代码:#include<stdio.h>#include<stdlib.h>int main(){    int n,num[100];    in……

java排序(利用冒泡排序)

摘要:解题思路:利用冒泡排序方法,注意事项:参考代码:package lianxi;import java.util.Scanner;public class 排序 {    public static v……

编写题解 1738: 排序

摘要:```c #include int main() { int num,nums[100],i,j,temp; while(~scanf("%d",&num)){ for……

1738-排序(由小到大*多数据排序)

摘要:解题思路:用数组储存数据,两个for循环遍历数据,比较大小交换位置注意事项:会用到new获取数组大小参考代码:#include <iostream>using namespace std;void s……

排序(c++ sort)

摘要:参考代码:#include<iostream>#include <algorithm>using namespace std;int main(){            int n;    whil……