#100

Same Tree

easy· Treesruns: 0

Given the roots of two binary trees p and q, write a function to check if they are the same tree. Two binary trees are the same when they are structurally identical and the nodes have the same value at every position.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.