Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 297. Serialize and Deserialize Binary Tree
Implement two complementary algorithms to convert a binary tree to a string and back, preserving exact node values and tree structure (including null children) so the process is reversible; common approaches use preorder DFS with null markers or level-order with placeholders. Ensure correctness and efficiency for trees up to ~10^4 nodes.
Asked at:
Meta
Microsoft
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early October, 2025
Amazon
Mid-level
Early August, 2025
Microsoft
Senior
Early August, 2025
Meta
Manager
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.