educative.io

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.

Course: https://www.educative.io/collection/5642554087309312/5679846214598656
Lesson: https://www.educative.io/collection/page/5642554087309312/5679846214598656/850001

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 :))