We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffef2c5 commit 3838f84Copy full SHA for 3838f84
src/main/java/com/fishercoder/solutions/_652.java
@@ -11,30 +11,6 @@
11
import java.util.Queue;
12
import java.util.Set;
13
14
-/**
15
- * 652. Find Duplicate Subtrees
16
- *
17
- * Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them.
18
-
19
- Two trees are duplicate if they have the same structure with same node values.
20
21
- Example 1:
22
- 1
23
- / \
24
- 2 3
25
- / / \
26
- 4 2 4
27
- /
28
- 4
29
- The following are two duplicate subtrees:
30
- 2
31
32
33
- and
34
35
36
- Therefore, you need to return above trees' root in the form of a list.
37
- */
38
public class _652 {
39
public static class Solution1 {
40
0 commit comments