Skip to content

Serialize and Deserialize Binary Tree  #1192

Open
@Atul-Kashyap

Description

@Atul-Kashyap

Design an algorithm to serialize and deserialize a binary tree.

A binary tree can be serialized to a string and this string can be deserialized to the original tree structure.

Example 1:
Input: root = [1,2,3,null,null,4,5]
Output: [1,2,3,null,null,4,5]

Example 2:
Input: root = [1]
Output: [1]

Hey, I am Atul Kashyap, a GSSOC'21 participant.
I want to contribute the code for the implementation of the Serialize and Deserialize Binary Tree in ### C++ language.
Please assign this task to me.
@anubhavitis @dheerajkotwani @tarun26091999 @todi-2000 @geekquad @plazzy99 @rudrakshi99

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions