Search
⌘K
Leetcode 449. Serialize and Deserialize BST
Design algorithms to serialize a binary search tree into a compact string and deserialize it back to the exact original tree. Leverage the BST ordering property (so you can encode compactly, e.g., without null markers) to produce an unambiguous, space-efficient representation.
Asked at:
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid April, 2026
Manager
Leetcode 449. Serialize and Deserialize BST
Mid February, 2026
Manager
Serialize and deserialize binary tree
Mid February, 2026
Manager
Hello Interview Premium
Your account is free and you can post anonymously if you choose.