2018-10-09 11:13:32 +08:00
|
|
|
|
## 数据结构与算法之美PHP实现
|
|
|
|
|
|
|
|
|
|
### 项目运行
|
2018-10-15 11:05:22 +08:00
|
|
|
|
* 依赖composer自动加载,php目录下执行`composer dump-autoload` || `sh buildAutoLoad.sh`
|
2018-10-09 11:13:32 +08:00
|
|
|
|
* 项目代码均在mac&php7环境下跑通
|
|
|
|
|
|
|
|
|
|
### 项目实现
|
2018-10-15 11:05:22 +08:00
|
|
|
|
#### 06_linkedlist
|
2018-10-09 11:13:32 +08:00
|
|
|
|
* 单链表php实现
|
2018-10-09 17:34:34 +08:00
|
|
|
|
* 回文判断
|
2018-10-15 11:05:22 +08:00
|
|
|
|
|
|
|
|
|
#### 07_linkedlist
|
2018-10-09 17:34:34 +08:00
|
|
|
|
* reverse 单链表反转
|
|
|
|
|
* checkCircle 链表中环的检测
|
|
|
|
|
* mergerSortedList 两个有序的链表合并
|
|
|
|
|
* deleteLastKth 删除链表倒数第n个结点
|
2018-10-15 11:05:22 +08:00
|
|
|
|
* findMiddleNode 求链表的中间结点
|
|
|
|
|
|
|
|
|
|
#### 08_stack
|
2018-10-23 17:51:36 +08:00
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
* 链栈实现
|
|
|
|
|
=======
|
2018-10-15 10:41:55 +08:00
|
|
|
|
* 链栈实现
|
|
|
|
|
|
|
|
|
|
#### 09_stack
|
2018-10-23 17:51:36 +08:00
|
|
|
|
* 队列链表实现
|
|
|
|
|
>>>>>>> upstream/master
|