Binary Tree Level Order Traversal | Live Coding with Explanation | Leetcode - 102

preview_player
Показать описание
This video contains Iterative and recursive solution for level order traversal

To support us you can donate

Check out our other popular playlists:
Questions you might like:

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.

#coding #leetcode #programminglife #programmingisfun #programmer #tech #software #codinglife #leetcode
Рекомендации по теме
Комментарии
Автор

What is the significance of declaring the _List<List<Integer>> result_ outside as an instance variable?

shivangb
Автор

This was a very helpful video. Thanks Khushbu.

michaligocki
Автор

Got that approach but was confused with taking list of list ... Thankyou great explaination

mdadnaan
Автор

In second approach, isn't the space complexity is O(h) where h is the height of tree.
Because at max, stack contains only the nodes in current leg of tree. Not all the nodes in the tree.

tvsureshbabu
Автор

You have added the youtube studio's link for level order traversal video I guess

PraddyumnShukla