LeetCode 練習問題集
問題 | 難易度 | 重要度 | テクニック |
★★★ | 高 | 二分木の再構築 | |
★★★ | 高 | 二分木の再構築 | |
★★★★ | 中 | Serialize and Reconstruct Binary Tree (シリアライズと再構築) | |
★★★★ | 中 | Serialize and Reconstruct Binary Tree (シリアライズと再構築) | |
★★★★ | 中 | Serialize and Reconstruct Binary Tree (シリアライズと再構築) |
巡回から二分木の再構築
[1, 1]
となります。
preorder = [1, 1] inorder = [1, 1] postorder = [1, 1]