← Amazon questions

Serialize and deserialize a BST

Filed under Amazon

Design an algorithm to serialize and deserialize a Binary Search Tree (BST). Serialization is converting a tree to a single string, and deserialization is reconstructing the tree from that string.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.