BFS
无需分层遍历的BFS
1 |
|
需要分层遍历的BFS
1 |
|
Bidirectional BFS
1 |
|
BFS in Binary Tree
- Binary Tree Level Order Traversal
- Binary Tree Serialization
- Binary Tree Level Order Traversal II
BFS in Graph
- Clone Graph
- Word Ladder
- Knight Shortest Path
BFS in Matrix
- Number of Islands
Topological Sort
四种问法: 求任意1个Topological Order;是否存在;所有;是否存在且仅有一个
1 |
|