Same Tree

#100
Easy
Binary Tree
O(n)
O(h)
Amazon
Microsoft
Bloomberg
View on LeetCode

Problem Description

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