摘要: Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all 阅读全文
posted @ 2017-07-08 05:37 Jimmy_Cheng 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define 阅读全文
posted @ 2017-07-08 03:07 Jimmy_Cheng 阅读(525) 评论(0) 推荐(0) 编辑