2 ms·
Non sequitur, but in my experience the parent pointer in a tree can almost always be passed as an argument in whatever recursive function is traversing the tree
by blt 8y ago
Non sequitur, but in my experience the parent pointer in a tree can almost always be passed as an argument in whatever recursive function is traversing the tree.
- dbaupp 8y agoThis doesn't work for a mutating traversal in general (although it can work if the tree structure is split from the data being stored, so only a subset of the parent needs to be passed into the recursive calls).