This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingWrite a binary tree as one string with markers, so the shape survives the trip.
What this asks
Write a binary tree as one string, with a marker for every missing child.
A preorder walk that appends the node then its two subtrees; a missing child appends the marker instead of being skipped.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing