LeetCode - DFS (depth-first-search) 總結
阿新 • • 發佈:2018-11-03
每行選一題先感受一下~
基礎
Subset I, II (contain duplicates)
Permutation I, II (contain duplicates)
Combinations Sum I, II (can only be used once), III
一維
Letter Combination of a Phone number
Course Schedule I, II
Decode String
二維
Number of Islands, Surrounded Regions, Max Area of Island [標記visited]
Word Search , II; Longest Increasing Path in a Matrix
Friend Circles
Nested List Weight Sum II
Graph
Clone Graph
Is Graph Bipartite?
Reference: