116. Populating Next Right Pointers in Each Node
1.問題
將next指向右邊的node
2.想法
提問
確認題意: binary tree的類型, 若非perfect tree, 則無法確定left或right一定存在
function header, parameter
test input
說明想法
測試計算複雜度
3.程式碼
Previous114. Flatten Binary Tree to Linked ListNext117. Populating Next Right Pointers in Each Node IIㄟˋ大
Last updated