Split BST by Target Value
Filed under Josh Technology
The question
Given a BST and a target value, split it into two BSTs such that nodes less than or equal to the target go to the first BST and the rest to the second, operating in O(log n) time and O(1) space.
No write-up yet. Related questions below have one.
Related Josh Technology questions
Collected from public candidate posts and coding forums. Updated Nov 2026.