...
/DIY: Serialize and Deserialize Binary Tree
DIY: Serialize and Deserialize Binary Tree
Solve the interview question "Serialize and Deserialize Binary Tree" in this lesson.
We'll cover the following...
We'll cover the following...
Problem statement
For this challenge, you are given a binary tree, and you have to implement two functions:
serializer()
, This will serialize a binary tree into string.deserializer()
, This will deserialize the string into a binary tree.
There are no restrictions on how ...