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

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

Example 1:
Input: {"p":[1,2,3],"q":[1,2,3]}
Output: true
Input
arr ={"p":[1,2,3],"q":[1,2,3]}

1

2

3

1

2

3

Variables
No variables to display
DepthFunction Call
Stack empty
0/12