摘要:
题目: 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 阅读全文
posted @ 2020-08-05 04:51
IreneZh
阅读(91)
评论(0)
推荐(0)
摘要:
题目: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Example 1: Input: root = [3,1,4,null,2], k = 1 3 阅读全文
posted @ 2020-08-05 03:36
IreneZh
阅读(116)
评论(0)
推荐(0)
摘要:
题目:Trim a Binary Search Tree Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies 阅读全文
posted @ 2020-08-05 00:20
IreneZh
阅读(90)
评论(0)
推荐(0)

浙公网安备 33010602011771号