题解 1738: 排序

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

筛选

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

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

编写题解 1738: 排序

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

1738: 排序 -python归并排序

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

1738: 排序 -python快速排序

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

冒泡排序法C语言

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

1738:排序(C语言)(交换排序法)(简单易懂)

摘要:解题思路: 交换法排序是将每一位数与它之后的所有数字对比,如果发现比它小的数字,那么立即交换这两个数字的位置,连续向后对比直至最后一个数;然后再使用第二个数同样依次向后对比,直到排序完成。交换法排序和……

1738: 排序(c++代码)

摘要:sort函数直接排,真不错 ```cpp #include #include using namespace std; int main() { int n; whil……

排序问题,江小白yyds

摘要:解题思路:用c++中的sort,直接排序注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int fun(int a,int b){ retur……