We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
If I understand this correctly, are you recording the list of all ancestors for current node? you don't need that but only need to record the farther. Otherwise it is not memory efficient.
Cut the Tree
You are viewing a single comment's thread. Return to all comments →
If I understand this correctly, are you recording the list of all ancestors for current node? you don't need that but only need to record the farther. Otherwise it is not memory efficient.