Skip to main content
Same Tree | AlgoCracked
AlgoCracked
ProblemsSame Tree
Easy58.0% acceptance
Blind75TreeDfsBfs

Same Tree

Given the roots of two binary trees p and q , return true if they are structurally identical and every corresponding node has the same value. Input format Input is [p, q] as level-order arrays, e.g. [[1,2,3],[1,2,3]] . TreeNode is predefined.

Loading workspace…