811. Subdomain Visit Count
Straight forward. Use String.split()
and collections.Counter()
to prettify code.
https://leetcode.com/problems/self-dividing-numbers/description/
Nothing worth mentioned.
https://leetcode.com/problems/binary-tree-pruning/description/
Another DFS problem.
https://leetcode.com/problems/merge-two-binary-trees/description/
DFS Problem. Recursive Solution.