Back to DSA sheet
Same Tree
EasyBinary TreesReturn true if two binary trees are structurally identical and have the same node values.
Constraints
- 0 <= nodes <= 100
- -10^4 <= Node.val <= 10^4
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
same-tree.cpp
Loading editor
Custom input (stdin)
Output
Run your code to see its output.