Serialize and Deserialize a Binary Tree | Leetcode #297

preview_player
Показать описание
This video explains a simple technique to approach and solve the serialize and deserialize a binary tree problem. This is from leetcode 297. I have first explained the intuition to solve the problem with sufficient example and then I have explained the easiest way to solve this problem using recursion which is the DFS technique (Depth First Search). I have shown the dry run step by step followed by code implementation.

CODE LINK is present below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)

======================================PLEASE DONATE=============================
==============================================================================

=======================================================================
USEFUL LINKS:

RELATED LINKS:

Рекомендации по теме
Комментарии
Автор

Great explanation!! Thanks for the video. Just curious..what software do you use for the drawing/sketching?

FelixYu
Автор

Great to see new video after a long time. When I was about to graduate 6 months ago and looking for job, I used to prepare from your videos. Now I work as full stack developer in USA, still I wanted to watch every video that comes from this channel. Please keep posting videos more often.😉😊

rahulvarma
Автор

instead of substr we can carry an index variable, that will save a lot of computation.

harshitparashar
Автор

Hello tech dose you are back again but can you please make videos on leetcode hard problems especially hards from google, microsoft, goldman sachs, twitter, uber, oracle, atlassian etc i have a set of these hard questions but it's hard to find solutions to these problems and i see many people are not explaining clearly for these problems which will take a lot of time for me to understand leetcode discuss posts and i see lot of other people too suffering the same

watchlistsclips
Автор

Bro, big fan of you. A small request, it would be great if we get videos frequently, at the least once in 2 weeks.

kaarthikraja
Автор

Great explanations as always. Would you considerate make a video about Amortized analysis (aggregate method, accounting method, potential method ) ? I feel like you're the only one on earth who could explain this to me

LeagueOfChallenger
Автор

Sir substr function ki complexity shayad high hoti hai. Uski jagah if we take i which would iterate over the string, kya vo better nahi hoga?

sarthakgoel
Автор

Excellent walkthrough.
Drawing the tree and walking each node helps solving this interesting Leetcode question.

CostaKazistov
Автор

Thank you for all your hard works for this year!

PegasusKr
Автор

Hi TechDose, do you have offline courses for system design?

xinxinzheng
Автор

What software do you use for the live presentation ?

rajeshkr
Автор

Hi, what software do you use for video editing ?

hikikomori
Автор

crystal clear explanation! thanksss!!!

raushankumar