摘要: Given a binary search tree and a node in it, find the in-order successor of that node in the BST. The successor of a node p is the node with the small 阅读全文
posted @ 2020-01-30 11:48 xuan_abc 阅读(150) 评论(0) 推荐(0)
摘要: Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a floati 阅读全文
posted @ 2020-01-30 11:17 xuan_abc 阅读(288) 评论(0) 推荐(0)