LeetCode #572: Subtree of Another Tree | More Recursive DFS

preview_player
Показать описание

0:00 Problem overview
1:24 Code walkthrough

#programming #algorithms #coding
Рекомендации по теме
Комментарии
Автор

Whoa… nice explanation!! Probably the cleanest explanation I’ve seen so far !!! Thank you. Please continue making more algo animations like these!!!

RamPageMMA
Автор

Amazing explanation, I've watched both the same tree video and this one. You walking through the recursive steps helps a lot and your explanation of how base cases should be thought of makes much more sense than other explanations I've seen.

OmarAnkit
Автор

Very nice explanations, very intuitive, love it

tonglizhou
Автор

Thanks for explaining the constraint part of the code. I was confused by "if (root==NULL){return false};".

Sequence