摘要:
Binary Tree Postorder TraversalGiven a binary tree, return thepostordertraversal of its nodes' values.ExampleGiven binary tree{1,#,2,3}, 1 \ ... 阅读全文
posted @ 2015-11-05 03:01
Tri_tri_tri
阅读(386)
评论(0)
推荐(0)
摘要:
Insert Node in a Binary Search TreeGiven a binary search tree and a new tree node, insert the node into the tree. You should keep the tree still be a ... 阅读全文
posted @ 2015-11-05 01:25
Tri_tri_tri
阅读(202)
评论(0)
推荐(0)
摘要:
Minimum Depth of Binary TreeGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root... 阅读全文
posted @ 2015-11-04 23:22
Tri_tri_tri
阅读(103)
评论(0)
推荐(0)
摘要:
Binary Search Tree IteratorDesign an iterator over a binary search tree with the following rules:Elements are visited in ascending order (i.e. an in-o... 阅读全文
posted @ 2015-11-04 12:17
Tri_tri_tri
阅读(152)
评论(0)
推荐(0)
浙公网安备 33010602011771号