已知先序和中序,求後序

思路:html 由先序找到根節點,即先序的第一個元素,ide 而後從中序中找到它的位置,以肯定左右孩子,即它的左右兩邊的元素post 依次遞歸spa   #include <stdio.h> #include <stdlib.h> #include <string.h> #define status int #define OK 1 #define ERROR 0 #define OVERFLOW
相關文章
相關標籤/搜索