Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf77624b

Browse files
refactor 226
1 parent8307b4a commitf77624b

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
importjava.util.LinkedList;
66
importjava.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)

[8]ページ先頭

©2009-2025 Movatter.jp