冒泡排序:
数组
1 | void bublletSort(int a[],int len) |
链表
1 | void BubbletSort(LNode *head) |
插入
(原理)[https://blog.csdn.net/huangyimo/article/details/80888999]
数组
1 | void insertSort(int a[],int n) |
链表
1 | void InsertSort(LNode *L){ |
选择排序
原理参考:
[[选择排序(数组实现)]]: https://blog.csdn.net/weixin_41362649/article/details/81901091
数组
1 | void selectSort(int a[],int len) |
链表
1 |
|
快速排序
(快速排序原理)[https://www.cnblogs.com/CBDoctor/articles/4077574.html]
1 |
|
摘自:
https://c0okb.github.io/2019/11/19/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95%E6%80%BB%E7%BB%93/