摘要: Given a root of Binary Search Tree with unique value for each node. Remove the node with given value. If there is no such a node with given value in ... 阅读全文
posted @ 2015-09-23 17:10 卖程序的小歪 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Design an algorithm and write code to serialize and deserialize a binary tree. Writing the tree to a file is called 'serialization' and reading back ... 阅读全文
posted @ 2015-09-23 16:47 卖程序的小歪 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Given two values k1 and k2 (where k1 < k2) and a root pointer to a Binary Search Tree. Find all the keys of tree in range k1 to k2. i.e. print all x ... 阅读全文
posted @ 2015-09-23 16:17 卖程序的小歪 阅读(184) 评论(0) 推荐(0) 编辑