BinaryTree t ← 生成二叉树 time ← 1 # 访问二叉树 t 的节点 u 的函数 postorder(u): if u = NIL: return postorder(t.nodes[u].left) postorder(t.nodes[u].right) L[u] ← time++ # 从二叉树的根节点开始访问 postorder(t.root)