摘要: 插入排序 1、直接插入排序 思想:①、查找出a[i]在a[0.....i-1]中的插入位置k ②、将a[k...i-1]中所有的元素全部后移一个位置 ③、a[i]=a[k] #include <bits/stdc++.h> using namespace std; void InsertSort(i 阅读全文
posted @ 2018-08-31 15:19 ybf&yyj 阅读(673) 评论(0) 推荐(0)