2015年3月17日

Binary Tree Postorder Traversal

摘要: Binary Tree Postorder Traversal问题:Given a binary tree, return thepostordertraversal of its nodes' values.思路: 栈方法我的代码:public class Solution { publi... 阅读全文

posted @ 2015-03-17 19:26 zhouzhou0615 阅读(158) 评论(0) 推荐(0) 编辑

Recover Binary Search Tree

摘要: Recover Binary Search Tree问题:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A ... 阅读全文

posted @ 2015-03-17 15:28 zhouzhou0615 阅读(143) 评论(0) 推荐(0) 编辑

导航