leetcode-117 - Populating Next Right Pointers in Each Node II

動機 用已經建成的next去連,所以遞迴方式變得很有趣 ...

August 1, 2021 · 1 min · zhengcf

leetcode-863 - All Nodes Distance K in Binary Tree

動機 轉成graph錯了嗎 ...

July 31, 2021 · 1 min · zhengcf

leetcode-662 - Maximum Width of Binary Tree

動機 忘了可以上index,要算距離就是index!! ...

July 31, 2021 · 2 min · zhengcf

leetcode-637 - Average of Levels in Binary Tree

動機 複習bfs ...

July 29, 2021 · 1 min · zhengcf

leetcode-1091 - Shortest Path in Binary Matrix

動機 找最短路徑,bfs 但是沒想到最後死在判別重複上 ...

July 28, 2021 · 2 min · zhengcf

leetcode-733 - Flood Fill

動機 複習dfs ...

July 27, 2021 · 2 min · zhengcf

leetcode-329 - Longest Increasing Path in a Matrix

動機 因為題目特性,不用考慮重複走的問題 ...

July 25, 2021 · 1 min · zhengcf

leetcode-210 - Course Schedule II

動機 沒辦法用cache_computing偷懶了 ...

July 25, 2021 · 2 min · zhengcf

leetcode-116 - Populating Next Right Pointers in Each Node

動機 畫裡面那一個橢圓,很有趣 ...

July 25, 2021 · 1 min · zhengcf

leetcode-130 - Surrounded Regions

動機 複習dfs ...

July 24, 2021 · 2 min · zhengcf