LeetCode Solutions | 1101 - 1200
1214. Two Sum BSTs
convert one tree to hashset
two pointers, from the smallest value of root1 and greatest value of root2; need to do iterative inorder traversal
1239. Maximum Length of a Concatenated String with Unique Characters
对于字符数组 arr 中的每个字符串都只有两个选择:要么加入到最后的结果串,要么不加入。则可以将我们的决策看作一个二叉树,假设往左分支走是加入当前字符串,往右分支走就不加入当前字符串。然后深搜即可。