Skip to content

Commit f77624b

Browse files
refactor 226
1 parent 8307b4a commit f77624b

File tree

1 file changed

+14
-13
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+14
-13
lines changed

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

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@
55
import java.util.LinkedList;
66
import java.util.Queue;
77

8-
/**226. Invert Binary Tree
8+
/**
9+
* 226. Invert Binary Tree
910
10-
Invert a binary tree.
11+
Invert a binary tree.
1112
12-
4
13-
/ \
14-
2 7
15-
/ \ / \
16-
1 3 6 9
13+
4
14+
/ \
15+
2 7
16+
/ \ / \
17+
1 3 6 9
1718
18-
to
19+
to
1920
20-
4
21-
/ \
22-
7 2
23-
/ \ / \
24-
9 6 3 1
21+
4
22+
/ \
23+
7 2
24+
/ \ / \
25+
9 6 3 1
2526
2627
Trivia:
2728
This problem was inspired by this original tweet by Max Howell:

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