106. Construct Binary Tree from Inorder and Postorder Traversal

1.問題

2.想法

  • 提問

    • 確認題意: root是NULL是true或false?

  • function header, parameter

  • r input

  • 說明想法

    • 想法與105題相同, 由於postorder序列建構tree, 必須由序列的最後往前

  • 測試計算複雜度

3.程式碼

Last updated