随笔分类 -  浙大版《数据结构(第2版)》

摘要:题目地址 题目分析:直接利用后序中序模拟出遍历过程,并按先序输出。 #include<stdio.h> int n,post[30],mid[30]; void pre(int postL,int postR,int midL,int midR) { int root=post[postR],rp; 阅读全文
posted @ 2023-03-12 15:24 kingdalf 阅读(62) 评论(0) 推荐(0)