摘要: 1st Solution:When I first see this problem, my first thought was in-order traversal. Couldn’t we modify the nodes’ left and right pointers as we do an in-order traversal of the tree? However, we have to beware not to modify the pointers and accessing it at a later time.As we traverse the tree in-ord 阅读全文
posted @ 2013-05-29 16:18 Alan Yang 阅读(513) 评论(1) 推荐(0) 编辑