It would be nice if the problem explanation would mention (at least briefly) other ways the problem could be solved

…for example this one could also be solved with pre-order traversal

Type your question above this line.


Hi @Peter_Litvak,
Thank you for your feedback. There can be multiple ways of solving a problem. Here we choose post-order, but yes the problem can be solved by using multiple techniques. We will consider your suggestion.

Happy Learning :))