Skip to content

Commit 3838f84

Browse files
refactor 652
1 parent ffef2c5 commit 3838f84

File tree

1 file changed

+0
-24
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-24
lines changed

src/main/java/com/fishercoder/solutions/_652.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,6 @@
1111
import java.util.Queue;
1212
import java.util.Set;
1313

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-
4
33-
and
34-
4
35-
36-
Therefore, you need to return above trees' root in the form of a list.
37-
*/
3814
public class _652 {
3915
public static class Solution1 {
4016

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy