938. Range Sum of BST
Question 938
Given the root
node of a binary search tree, return the sum of values of all nodes with value between L
and R
(inclusive).
The binary search tree is guaranteed to have unique values.
Example 1:
Example 2:
Answer
Last updated