摘要: 交换--冒泡 交换-快速 插入- 直接 插入-shell ~ 选择-简单选择 选择-堆 构建堆: 调整堆: 归并 治阶段 合并详解: 基数 阅读全文
posted @ 2021-09-17 22:15 abel2020 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 很多资料都是带头结点的栈实现,感觉不带头结点实现也更容易啊。 // 有本句 ,下面cout 前面可以没有 std:: using namespace std; typedef char ElemType; //元素数据类型 char #define MAXSIZE 10 //普通链节点结构 type 阅读全文
posted @ 2021-09-17 11:19 abel2020 阅读(30) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> // c 库 #include <stdlib.h> //maclloc 库 #include <iostream> // c++ 库 // 有本句 ,下面cout 前面可以没有 std:: using namespace std; typedef char E 阅读全文
posted @ 2021-09-17 01:24 abel2020 阅读(51) 评论(0) 推荐(0) 编辑