1.重建二叉树 注意:pre.length为 1的时候,root不是全局变量,所以写的不是root,而是pre[0] 调试了半天才出来的结果。还有vin.length和pre.length尽量加上。 function reConstructBinaryTree(pre, vin) { // write code here var result = null; if(pre.length>1){ &nb...