You are viewing a single comment's thread. Return to all comments →
To me it seems like such a solution would scale worse than the method using DFS traversal and checking the number of nodes in the subtree?
Seems like cookies are disabled on this browser, please enable them to open this website
Even Tree
You are viewing a single comment's thread. Return to all comments →
To me it seems like such a solution would scale worse than the method using DFS traversal and checking the number of nodes in the subtree?