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.
- Tree: Preorder Traversal
- Discussions
Tree: Preorder Traversal
Tree: Preorder Traversal
Sort by
recency
|
83 Discussions
|
Please Login in order to post a comment
Ridiculously easy. Note that python optimizes tail recursive loops so this isn't an inefficient use of recursion.
Why is this considered an advanced level challenge?
I'm not even sure what the challenge was supposed to be. It felt more like a introduction to trees tutorial question.
Why is the php so messed up? why doesn't it make sense compared to python and js ?
Why is the C++ 14 solution template formulated in such a weird way that you cannot include additional libraries (such as stack for this question)? The C++ 11 and 20 templates are totally fine. I wish the solution templates are all standardized like Leetcode does.