30:00
Given the roots of two binary trees p and q, write a function to check if they are the same or not.
The number of nodes in each tree is in the range [0,100][0, 100][0,100].
−104≤Node.val≤104-10^4 \leq \text{Node.val} \leq 10^4−104≤Node.val≤104
1
2
3