SeniorSenior (6–10 yrs)CodingPythonAmazonLinkedInGoogle
Design
Serialize and Deserialize Binary Tree
Design algorithms to serialize a binary tree to a string and deserialize it back to the same structure.
Answers use simple, clear English.
Time: O(n)Space: O(n)
Confidence
#tree#bfs