Problem 297 · Hard

Serialize and Deserialize Binary Tree

Pre-order DFS serialization with null markers; reconstruct by consuming tokens in the same order.

Open the interactive visualisation