跳至主要內容

 

labuladong原创约 21 字小于 1 分钟

- root.left = build(preorder, ?, ?,
-                   inorder, ?, ?);
+ root.left = build(inorder, ?, ?,
+                   postorder, ?, ?);

- root.right = build(preorder, ?, ?,
-                    inorder, ?, ?);
+ root.right = build(inorder, ?, ?,
+                    postorder, ?, ?);
上次编辑于: