algo/php
wangzheng0822 9d64c82df4
Merge pull request #104 from iyoungm/master
php_12_sort_mergeSort
2018-10-26 10:37:36 +08:00
..
05_array 数组实现 by php 2018-10-05 09:45:21 +08:00
06_linkedlist 合并原始代码主干 2018-10-15 11:05:22 +08:00
07_linkedlist php 07_linkedlist 2018-10-09 17:34:34 +08:00
08_stack Merge remote-tracking branch 'upstream/master' 2018-10-23 17:51:36 +08:00
09_queue Merge pull request #65 from Hkesd/master 2018-10-16 10:44:43 +08:00
11_sort 循环队列 和 插入排序 2018-10-15 15:51:16 +08:00
12_sort fix mergeSort 2018-10-25 17:03:39 +08:00
Stack 合并原始代码主干 2018-10-15 11:05:22 +08:00
.gitignore 1.修复括号不匹配。2.除法也要优先于乘法运算 2018-10-15 09:37:28 +08:00
buildAutoLoad.sh php 07_linkedlist 2018-10-09 17:34:34 +08:00
composer.json Merge remote-tracking branch 'upstream/master' 2018-10-23 17:51:36 +08:00
README.md Merge remote-tracking branch 'upstream/master' 2018-10-23 17:51:36 +08:00

数据结构与算法之美PHP实现

项目运行

  • 依赖composer自动加载php目录下执行composer dump-autoload || sh buildAutoLoad.sh
  • 项目代码均在mac&php7环境下跑通

项目实现

06_linkedlist

  • 单链表php实现
  • 回文判断

07_linkedlist

  • reverse 单链表反转
  • checkCircle 链表中环的检测
  • mergerSortedList 两个有序的链表合并
  • deleteLastKth 删除链表倒数第n个结点
  • findMiddleNode 求链表的中间结点

08_stack

<<<<<<< HEAD

  • 链栈实现 =======
  • 链栈实现

09_stack

  • 队列链表实现

upstream/master