Problem 776 · Medium

Split BST

Split a binary search tree into two trees: one of values at most a target, one of larger values.

Open the interactive visualisation