Leetcode: 113. Path Sum II (week3 --- medium)

題目  題解 總結 題目  Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. Note: A leaf is a node with no children. 題目給出了一個例子:  所以也就是相當於尋找一條從根root開始的到葉節點的路徑,這
相關文章
相關標籤/搜索