File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 5
5
import java .util .LinkedList ;
6
6
import java .util .Queue ;
7
7
8
- /**
9
- * 449. Serialize and Deserialize BST
10
- *
11
- * Serialization is the process of converting a data structure or
12
- * object into a sequence of bits so that it can be stored in a file or memory buffer,
13
- * or transmitted across a network connection link to be reconstructed later in the same or another computer environment.
14
- *
15
- * Design an algorithm to serialize and deserialize a binary search tree.
16
- * There is no restriction on how your serialization/deserialization algorithm should work.
17
- * You just need to ensure that a binary search tree can be serialized to a string and this
18
- * string can be deserialized to the original tree structure.
19
- * The encoded string should be as compact as possible.
20
-
21
- Note: Do not use class member/global/static variables to store states. Your serialize and deserialize algorithms should be stateless.
22
- */
23
-
24
8
public class _449 {
25
9
26
10
public static class Solution1 {
You can’t perform that action at this time.
0 commit comments