3 ms·
Can you implement a tree traversal (in-order, post-order, your pick) in a traditional for loop without abusing the syntax?
by RodgerTheGreat 16y ago
Can you implement a tree traversal (in-order, post-order, your pick) in a traditional for loop without abusing the syntax?
- DjDarkman 16y agoSure you can, just list all your tree elements in an array, your iterator does that anyway. If done correctly it's 1 line extra code only. And btw: let's not confuse implementation with syntax.