...

/

Challenge: Trim the Tree Nodes Outside Range

Challenge: Trim the Tree Nodes Outside Range

Try solving the problem of trimming the tree nodes which are not in the range of given minimum and maximum numbers.

Problem

Given a BST and a range, delete all nodes outside of that range.

Input

A ...