码迷,mamicode.com
首页 >  
搜索关键字:bubble sort    ( 13252个结果
linux分析工具之top命令详解
Linux系统可以通过top命令查看系统的CPU、内存、运行时间、交换分区、执行的线程等信息。通过top命令可以有效的发现系统的缺陷出在哪里。是内存不够、CPU处理能力不够、IO读写过高。 回到顶部 一、top选项 使用语法:top -hv | -abcHimMsS -d delay -n iter ...
分类:系统相关   时间:2021-06-02 14:25:14    阅读次数:0
排序 - 冒泡排序(C语言)
时间复杂度:O(N2) 空间复杂度:O(1) 稳定性:稳定 // 冒泡排序 void bubble_sort(int list[], int listSize) { int i, j, flag; int temp; for (i = listSize - 1; i >= 1; --i) { fla ...
分类:编程语言   时间:2021-06-02 13:42:30    阅读次数:0
实验五
task 1 #include <stdio.h> const int N=3;int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", ...
分类:其他好文   时间:2021-06-02 13:36:45    阅读次数:0
实验五
任务一#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a ...
分类:其他好文   时间:2021-06-02 12:17:51    阅读次数:0
实验五
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:其他好文   时间:2021-06-02 12:09:15    阅读次数:0
Docker常用命令
1、docker安装wget -P /etc/yum.repos.d/ https://download.docker.com/linux/centos/docker-ce.repoyum list docker-ce --showduplicates | sort -r #查看可以安装的版本yum ...
分类:其他好文   时间:2021-06-02 11:38:46    阅读次数:0
Linux Shell经典面试题
查空行 awk '/^$/{print NR}' demo1.txt 求某一列的和 awk '{sum+=$2} END {print "求和:"sum}' demo2.txt 数字排序 sort -n -t ' ' -k 2 demo3.txt sort -t ' ' -k 2nr demo3.t ...
分类:系统相关   时间:2021-06-02 11:35:11    阅读次数:0
自己总结的Java归并排序代码
看了网上的许多博客,然后自己总结了下,谢谢大神们的贡献 public class MergeSort { public void sort(int[] arr, int lo, int hi) { if (lo >= hi) return; int mid = lo + (hi - lo)/2; s ...
分类:编程语言   时间:2021-06-02 11:26:03    阅读次数:0
mongodb sort
往常使用options.Find().SetSort(bson.D{{"a", -1},{"b", -1}})结果报错,感觉使用方法没问题,排查之后发现是import的包错了导致。 cannot transform type bson.D to a BSON Document: WriteArray ...
分类:数据库   时间:2021-05-25 18:10:59    阅读次数:0
Javascript 浮点数
在复习归并排序的时候,使用到了递归,我一直以为是递归函数没写对,导致了Maximum call stack size exceeded 栈溢出,但是其实是JavaScript浮点数的自动转换的问题! function sort(arry,left,right){ if(left right){ re ...
分类:编程语言   时间:2021-05-25 17:48:06    阅读次数:0
13252条   上一页 1 ... 3 4 5 6 7 ... 1326 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!