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

Commit04eaece

Browse files
refactor 100
1 parent79911eb commit04eaece

File tree

1 file changed

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

1 file changed

+30
-0
lines changed

‎src/main/java/com/fishercoder/solutions/_100.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,36 @@
77
*
88
* Given two binary trees, write a function to check if they are equal or not. Two binary trees are
99
* considered equal if they are structurally identical and the nodes have the same value.
10+
*
11+
* Example 1:
12+
*
13+
* Input: 1 1
14+
* / \ / \
15+
* 2 3 2 3
16+
*
17+
* [1,2,3], [1,2,3]
18+
*
19+
* Output: true
20+
*
21+
* Example 2:
22+
*
23+
* Input: 1 1
24+
* / \
25+
* 2 2
26+
*
27+
* [1,2], [1,null,2]
28+
*
29+
* Output: false
30+
*
31+
* Example 3:
32+
*
33+
* Input: 1 1
34+
* / \ / \
35+
* 2 1 1 2
36+
*
37+
* [1,2,1], [1,1,2]
38+
*
39+
* Output: false
1040
*/
1141

1242
publicclass_100 {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp