zwkcoding / 100Days-Of-Leetcode

就像电影(500)Days of Summer一样,记录着每一天 Leetcode @itgoyo/500Days-Of-Github
0 stars 0 forks source link

04 Explore00_Queen and BFS_Perfect Squares_Chapter02 #6

Open zwkcoding opened 5 years ago

zwkcoding commented 5 years ago

Keywords: BFS Conclusion: BFS deep understanding: always think BFS as a graph from near node to far node. BFS, as the name, vivid。Breath First, (from near to far), so BFS is good at solving computative or evolution from basic base (ex: 0, 1)

zwkcoding commented 5 years ago

Leave a hole: For dynamic programming solution, pls see https://github.com/haoel/leetcode/blob/master/algorithms/cpp/perfectSquares/PerfectSquares.cpp