摘要: 选择排序C语言实现 int select_sort(int *list, int len) { int i = 0; int j = 0; int tmp = 0; int smallest_loc = 0; if((NULL == list) || (0 == len)) { return 1; 阅读全文
posted @ 2021-02-08 20:10 sinodragon21 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 插入排序算法C语言实现 我写出来的排序算法用printf一步步解读,与google algorithm APP上模拟的单步执行不一致。 于是参考了https://www.cnblogs.com/coding-996/p/12275710.html,写出如下代码,经测试,与google algorit 阅读全文
posted @ 2021-02-08 19:01 sinodragon21 阅读(75) 评论(0) 推荐(0) 编辑