Split a Binary Tree using specific methods

后端 未结 0 1957
不知归路
不知归路 2021-01-27 03:50

Given a binary tree, I have to return a tree containing all elements that smaller than k, greater than k and a tree containing only one element - k. Allowed methods to use:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题