[Leetcode] Binary tree travelsal (preorder, inorder, postorder)
摘要:
一、前序 1 public List preOrder(Node root){ 2 List res = new LinkedList(); 3 Stack stack = new Stack(); 4 stack.push(root); 5 while(root!=... 阅读全文
posted @ 2015-08-14 23:55 F_G 阅读(317) 评论(0) 推荐(0) 编辑