maximum width of binary tree | maximum width of binary tree leetcode | BFS & DFS

preview_player
Показать описание


Subscribe for more educational videos on data structure, algorithms and coding interviews.

#BFS #DFS #Tree #Challenge #Coding #MaximumWidth #Programming #Interview #Practice #Leetcode #662 #Algorithm #Java #Preparation
Рекомендации по теме
Комментарии
Автор

how 2nd solution will insert only MIN node of that level (i.e line 25, 26 of code) .
DFS will work this way.

so LIST(0)->LIST(0, 2)
how LIST will avoid inserting 2.
CORRECT ME IF I'M MISSING SOMETHING...!

sharinganuser
Автор

Sir can you suggest me Leetcode problem on DFS from basic to a level after which I will be able to make a solution like you have done in this problem.

csanjaysahoo
welcome to shbcf.ru