On the left are a list of tree traversals, and on the right, you'll find their corresponding descriptions. Your task is to correctly match each tree traversal with its corresponding description.
Tree traversals
Traversals
Report a typo
Match the items from left and right columns
Pre-order
In-order
Post-order
Level-order
Visit the left child of the current node (if exists), after that, visit the right child of the current node (if exists), then, visit the current node.
Visit the current node, then, visit the left child (if exists), next, visit the right child (if exists).
Visit the left child of the current node (if exists), next, visit the current node, after that, visit the right child of the current node (if exists).
Visit a root, after that, visit all nodes that are at a distance of one from the root, next, we visit the nodes that are at a distance of two from the root and so on.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.