二叉樹的先序、中序、後序及層次遍歷的非遞歸方式實現(Java)

public class PreInPosTraversal { public static void preOrderUnRecur(Node head) { System.out.print("pre-order: "); if (head != null) { Stack<Node> stack = new Stack<N
相關文章
相關標籤/搜索