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:

LinkedIn

LinkedIn

Microsoft

Microsoft


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid February, 2026

LinkedIn

LinkedIn

Manager

Serialize and deserialize binary tree

Mid February, 2026

LinkedIn

LinkedIn

Manager

Mid March, 2025

Microsoft

Microsoft

Mid-level

Leetcode Question: Serialize and Deserialize a binary Tree

Comments

Your account is free and you can post anonymously if you choose.