摘要: The problem:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are ... 阅读全文
posted @ 2015-01-12 23:33 airforce 阅读(224) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The... 阅读全文
posted @ 2015-01-12 02:04 airforce 阅读(140) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next ... 阅读全文
posted @ 2015-01-12 00:57 airforce 阅读(129) 评论(0) 推荐(0) 编辑