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 February, 2026
Manager
Serialize and deserialize binary tree
Mid February, 2026
Manager
Mid March, 2025
Microsoft
Mid-level
Leetcode Question: Serialize and Deserialize a binary Tree
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.