DEV Community

Discussion on: Serialize and Deserialize binary tree, Apple interview

Collapse
 
vraghuvamshi profile image
Vinayak Raghuvamshi

I have seen candidates appearing for interview and pretty much copy pasting the code from here or from Leetcode without much further thought. This is a bad practice.

Anybody reading about these solutions and preparing for an interview should bear in mind that it is not sufficient to just memorize and recite the code during interviews. Especially at Amazon. You need to actually understand it thoroughly and be able to ask yourself deeper questions. For example, why choose a String type to hold the serialized value? what are the drawbacks? etc.

Collapse
 
akhilpokle profile image
Akhil

well, that's why I am writing it as a blog so that I can understand the concepts at a much deeper level, break it down into simpler visual parts and share my learning.