Good evening, please help me build a tree according to the task (you do not need to write a program, just draw it in paint, for example), I completed the task and received an answer in the form of a sequence of visited tree nodes.
Task text:
In the direct order of traversal of the binary tree, a sequence of nodes DFKBAHCGLE was obtained, and in the symmetric order – KBFAHDCJGE. What is the sequence of traversing this tree by levels? In the response line, write down the sequence of visits to the nodes of the tree without spaces, separating the multi-level nodes with a semicolon.
Answer: D;FC;KAG;BHJE
Please help me build a tree
bibgonshik Bibigosha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.