[Interview] Serialize and De-serialize a tree

摘要: A very frequent interview question. Suppose you have a tree, how could you serialize it to file and revert it back?for example, ... 阅读全文
posted @ 2013-03-23 08:43 小刀初试 阅读(141) 评论(0) 推荐(0)

[LeetCode] Convert Sorted Array to Binary Search Tree, Solution

摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST.» Solve this problem[Thoughts][Code]1: TreeNode... 阅读全文
posted @ 2013-03-23 08:40 小刀初试 阅读(100) 评论(0) 推荐(0)