Skip to content

Commit 558ecd9

Browse files
refactor 114
1 parent e967ff5 commit 558ecd9

File tree

1 file changed

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

1 file changed

+0
-30
lines changed

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

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,6 @@
22

33
import com.fishercoder.common.classes.TreeNode;
44

5-
/**
6-
* 114. Flatten Binary Tree to Linked List
7-
*
8-
* Given a binary tree, flatten it to a linked list in-place.
9-
10-
For example,
11-
Given
12-
13-
1
14-
/ \
15-
2 5
16-
/ \ \
17-
3 4 6
18-
19-
The flattened tree should look like:
20-
1
21-
\
22-
2
23-
\
24-
3
25-
\
26-
4
27-
\
28-
5
29-
\
30-
6
31-
32-
Hints:
33-
If you notice carefully in the flattened tree, each node's right child points to the next node of a pre-order traversal.
34-
*/
355
public class _114 {
366

377
public static class Solution1 {

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