目录
线性结构 ..................................................................................................................................1
时间复杂度.......................................................................................................................1
链表 ..................................................................................................................................3
两句话解决如何选择最合适的链表...............................................................................................4
动态数组 ..........................................................................................................................5
栈 ......................................................................................................................................5
n 个元素进栈,共有多少种出栈顺序(公式)............................................................................5
队列 ..................................................................................................................................6
易错习题 ..........................................................................................................................................6
三对角阵 ..........................................................................................................................................7
树 ..............................................................................................................................................8
常见树的定义与规律.......................................................................................................8
散列查找 ..................................................................................................................................8
二分查找 ..........................................................................................................................8
一 ......................................................................................................................................................8
pta 习题............................................................................................................................................8
函数接口定义: ..............................................................................................................................8
裁判测试程序样例:.......................................................................................................................9
输入样例 1: .................................................................................................................................10
输出样例 1: .................................................................................................................................10
输入样例 2: .................................................................................................................................10
解决哈希冲突办法.........................................................................................................10
求平均查找长度.............................................................................................................11
查找不成功平均长度.....................................................................................................12
图 ............................................................................................................................................13
邻接矩阵 ........................................................................................................................13
邻接表 ............................................................................................................................14
广度优先遍历.................................................................................................................16
深度优先遍历.................................................................................................................16
排序 ........................................................................................................................................16
线性结构
时间复杂度