leetcode
652. Find Duplicate Subtrees
Solution code
Time complexity: O(n)
Space complexity: O(n)