在线验证工具 http://easycode.top/

案例1: 二叉树前序ABDHIEJCFKG,中序HDIBEJAFKCG,得到的后序是什么?

image-20240515173628410


案例2: 二叉树前序是abdgcefh,中序

image-20240515173906031