Serialize and Deserialize Binary Tree — Interactive Visualizer

Convert a binary tree to a string using level-order traversal (BFS), and reconstruct the exact same tree from the string.