Problems / Trees / Same Tree
#50 Easy Time O(n) Space O(n) Animated

Same Tree

Check if two binary trees are the same.

LeetCode ↗
Approach: DFS (Recursion)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps