Shopify SDE Interview Question 2022 December | Trees & BFS/DFS Serialization | On-campus

Question · Posted Jun 2026

Question 1: Serialize and Deserialize Binary Tree Problem Statement Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be reconstructed later in the same or another computer environment. Design an algorithm to serialize and deserialize a Binary Tree. There is no restriction on how your serialization/deserialization algorithm should work. You just need to ...

The full answer & interview discussion are available to premium members.

Log in Create a free account