Sum of Search-Tree Keys Within a Range

Asked at Meta · Coding Questions · Difficulty: Easy

You are given a binary search tree of integer keys and an inclusive range `[low, high]`. Return the sum of every key in the tree that lies inside the range.

Loading the problem…