Skip to main content
easyBlind 75

Same Tree

Return true if the two trees are the same Example: [1,2,3], [1,2,3] => True

Same Tree is a traversal problem: the hard part is modeling the state you visit. It's a great warm-up that builds traversal modeling without a ton of moving parts. Once your traversal structure is solid, you can reuse it across dozens of problems.

BFS / DFSTrees

Meet Coco

Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.

1Same Treeeasy