Concept Flow - Serialize and Deserialize Binary Tree
Start Serialization
Visit Node
Serialize Left
Combine Results
End Serialization
Start Deserialization
Read Next Value
Create Node or Null
Deserialize Left
Return Node
End Deserialization
Serialization visits nodes in preorder and records values or nulls; deserialization reads values to rebuild the tree recursively.
