二叉樹序列---根據後序和中序系列或前序和中序序列構造二叉樹

一、根據前序遍歷序列和中序遍歷序列,構造二叉樹(或求後序遍歷序列);web public Node buildTree(int[] preOrder,int[] inOrder){ Node root=buildTree(preOrder,0,preOrder.length-1,inOrder,0,inOrder.length-1); return root;
相關文章
相關標籤/搜索