LC: 428. Serialize and Deserialize N ary Tree - spiralgo/algorithms GitHub Wiki

428. Serialize and Deserialize N-ary Tree:

The Essence:

  • The essence of encoding/decoding, serialization/deserialization questions are the communication between two different systems
  • The purpose of a communication system is to transmit information without any distortion or corruption.
  • It is why all sides of the communication should have both encoding and decoding methods.

When the information encoded in System 1 is decoded in System 2, we should be able to reconstruct the information without any damage.

IMG-1708

Details:

How to implement the serialization/deserialization methods is up to the problem-solver.

We have some suggestions here in the corresponding PR: https://github.com/spiralgo/algorithms/pull/394