Search
⌘K

Leetcode 100. Same Tree

Determine whether two binary trees are identical by checking that they have the same structure and corresponding node values (i.e., every pair of corresponding nodes are either both null or have equal values). This is typically solved by a parallel traversal (recursive or iterative) that compares nodes in lockstep.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.