Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 80a4f72

Browse files
doc: add README
1 parent 1ed8991 commit 80a4f72

File tree

1 file changed

+16
-0
lines changed
  • binary_tree/serialise_deserialise_tree

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## **Problem Statement**
2+
3+
Serialize a given binary tree to a file and deserialize it back to a tree. Make sure that the original and the deserialized trees are identical.
4+
5+
Serialize: Write the tree to a file.
6+
7+
Deserialize: Read from a file and reconstruct the tree in memory.
8+
9+
Serialize the tree into a list of integers, and then, deserialize it back from the list to a tree. For simplicity’s sake, there’s no need to write the list to the files.
10+
11+
12+
### Constraints
13+
14+
> The number of nodes in the tree is in the range [0,500].
15+
16+
> −1000 ≤ Node.value ≤ 1000

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /