运行结果正确
还是很讨厌递归

#include <stdio.h>
#include <stdlib.h>
int pre[100];//先序遍历数组
int in[100];//中序遍历 数组
int post[100]={
0};//后序遍历数组
//后序遍历结果
void tra_post(int total){
for(int i=0;i<total;i++){
printf("%d ",post[i
这篇博客探讨了如何使用C语言,通过前序和中序遍历的结果来确定后序遍历。尽管递归在解决这个问题时被用到,但作者表达了对递归的不喜好。
运行结果正确
还是很讨厌递归

#include <stdio.h>
#include <stdlib.h>
int pre[100];//先序遍历数组
int in[100];//中序遍历 数组
int post[100]={
0};//后序遍历数组
//后序遍历结果
void tra_post(int total){
for(int i=0;i<total;i++){
printf("%d ",post[i

被折叠的 条评论
为什么被折叠?