ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Nice Explanation!! Thanks!!
Thank you 😊
good solution, thank you
Thank you :)
very helpful 🔥
Code didn't understodd properly WHy ans is used and how it ensures that each subtree is same size
1 more query bro, we could have also solved this question, by converting it into a N-ary tree and then applying recurison on that N-ary tree, right??
Bro, if we didn't use the parent node in this DFS. then only simple DFS would have not worked in this question, right?
No shatul, either parent node or visited array need to be used
@@Code_With_Confidence got it, thanks bro. Nice solution btw bro :)
Nice Explanation!! Thanks!!
Thank you 😊
good solution, thank you
Thank you :)
very helpful 🔥
Thank you 😊
Code didn't understodd properly
WHy ans is used and how it ensures that each subtree is same size
1 more query bro, we could have also solved this question, by converting it into a N-ary tree and then applying recurison on that N-ary tree, right??
Bro, if we didn't use the parent node in this DFS. then only simple DFS would have not worked in this question, right?
No shatul, either parent node or visited array need to be used
@@Code_With_Confidence got it, thanks bro.
Nice solution btw bro :)