[Java] Leetcode 428. Serialize and Deserialize N-ary Tree [N-ary Tree #1]

preview_player
Показать описание
In this video, I'm going to show you how to solve Leetcode 428. Serialize and Deserialize N-ary Tree which is related to N-ary Tree.

Here’s a quick rundown of what you’re about to learn:

⭐️ Course Contents ⭐️
⌨️ (0:00) Question
⌨️ (1:10) DFS Solution
⌨️ (8:00) BFS Solution

In the end, you’ll have a really good understanding on how to solve Leetcode 428. Serialize and Deserialize N-ary Tree and questions that are similar to this N-ary Tree.

#leetcode #programming #softwareengineering #computerscience
Рекомендации по теме
Комментарии
Автор

Clean and intuitive code! Glad to see you solve these hard problems in such a neet way.

scys
Автор

Lookup setLength in StringBuilder. Also lookup isEmpty in List

rydmerlin
Автор

Thanks for your clear explanation. Which chrome extension are your using to draw as seen in the video?

username__
Автор

It has a constraint of not using any global variables.

dazhu
Автор

thanks! clean dfs solution. though the comment of serialize/encode is incorrect. serialized string that its building is 1, 2, X, 3, 6, X, 7, 11, 14, X, X, X, X, 4, 8, 12, X, X, X, 5, 9, 13, X, X, 10, X, X, X and not, 1, 2, X, 3, 6, X, 7, 11, 14, X, , 4, 8, 12, X, 5, 9, 13, X, 10, X

WhisperingWalnuts
visit shbcf.ru