From 0d86ce25d0e878b5cec2ac0fea7df728c7c4d9b9 Mon Sep 17 00:00:00 2001 From: Deven <63876261+devenperez@users.noreply.github.com> Date: Tue, 10 Jan 2023 09:52:14 -0500 Subject: [PATCH] Create README - LeetHub --- 100-same-tree/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 100-same-tree/README.md diff --git a/100-same-tree/README.md b/100-same-tree/README.md new file mode 100644 index 0000000..ac214aa --- /dev/null +++ b/100-same-tree/README.md @@ -0,0 +1,31 @@ +

100. Same Tree

Easy


Given the roots of two binary trees p and q, write a function to check if they are the same or not.

+ +

Two binary trees are considered the same if they are structurally identical, and the nodes have the same value.

+ +

 

+

Example 1:

+ +
Input: p = [1,2,3], q = [1,2,3]
+Output: true
+
+ +

Example 2:

+ +
Input: p = [1,2], q = [1,null,2]
+Output: false
+
+ +

Example 3:

+ +
Input: p = [1,2,1], q = [1,1,2]
+Output: false
+
+ +

 

+

Constraints:

+ + +
\ No newline at end of file