Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
CS foundations
/
Recursion
A recursive pre-order traversal visits children from left to right. How should an equival…
from Recursion
Python 3.14
intermediate
1 min
A recursive pre-order traversal visits children from left to right. How should an equivalent LIFO stack push those children?
Right to left, so the leftmost child is popped first
Left to right, because push order always equals visit order
Any order, because depth-first traversal has no observable order
Check
Ask AI about this kata
Report an error
previous kata
A recursive depth-first traversal visits every node in a balanced binary tree with n node…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload