GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — algo/php at master · github1145229447/algo

Expand file tree

/

php

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

php

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
05_array
05_array
 
 
06_linkedlist
06_linkedlist
 
 
07_linkedlist
07_linkedlist
 
 
08_stack
08_stack
 
 
09_queue
09_queue
 
 
10_heap
10_heap
 
 
11_sort
11_sort
 
 
12_sort
12_sort
 
 
13_sort
13_sort
 
 
15_binary
15_binary
 
 
16_binary
16_binary
 
 
17_skiplist
17_skiplist
 
 
24_tree
24_tree
 
 
38_divide_and_conquer
38_divide_and_conquer
 
 
39_backtracking
39_backtracking
 
 
Stack
Stack
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
buildAutoLoad.sh
buildAutoLoad.sh
 
 
composer.json
composer.json
 
 

README.md

Outline

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

项目运行

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

项目实现

06_linkedlist

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

07_linkedlist

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

08_stack

  • 链栈实现

09_stack

  • 队列链表实现

10_heap

  • main 堆的基本操作,堆排序
  • findmiddle 动态数据流求中位数
  • topn 动态数据流求top k

24_tree

  • main 二叉树的基本操作 前中后序遍历
  • levelOrder 二叉树的层级遍历
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.