Amazon interview question

Q1 Serialization and deserialization of binary tree.

Interview Answer

Anonymous

6 Sept 2021

As questions 1 was serialization and desrialization of binary tree I first tell him the approach using two arrays for preorder and inorder. then i gave approach using one array .