Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 397 Bytes

File metadata and controls

9 lines (5 loc) · 397 Bytes

145.Trim a Binary Search Tree

Description

Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the tree, so the result should return the new root of the trimmed binary search tree.

From

LeetCode