Level Order Traversal in Binary Tree | Solution | Data Structure and Algorithms | Java and C++

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


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

Sir aap bot acha pdhate ho .Aesa content kahi nhi h youtube pe .You are much better than 'Coding Ninjas'.I wish to be a very good coder in my life just like you .May your pepcoding institute reach great heights .

hamneetkaur
Автор

I've wasted hours to understand the solution of this question from different youtube channels & you just cleared it within 4 mins....Thank you so much for such a good content & for being such a good teacher :)

kashishshukla
Автор

Others: 50mint Video for bst level order.
Le pepcode: 4mint me pura samajh agaya🙂🎈♥

souravdebnathx
Автор

Just for those who don't know, in the actual problem, you will get an array as an input. So first you have to construct a binary tree out of it. And you can also print levels while creating a btree.

harshad_dev
Автор

"kahi par JAHEER macha diya hai"🤣🤣🤣🤣 PS: Great Explanation Sir, Making DSA easy for me :)

alkamaahmed
Автор

remove print add child analogy was superb

vikaskumarnitrr
Автор

while(que.size()>1)
{
Node p = que.remove();

if(p==gap)
{
System.out.println();
que.add(gap);
}
else
{
System.out.print(p.data+" ");
if(p.left!=null)
que.add(p.left);
if(p.right!=null)
que.add(p.right);
}
}



}
this can be a submission without for loop as same as generic tree

aryanrastogi
Автор

Your are best teacher sir and way of understanding is best

bhuvneshjangid
Автор

Explained with such ease...great work sir🙌

shubhamagarwal
Автор

हर हर महादेव जय माँ भवानी जय श्रीराम जय माँ सीता जय हनुमानजी 🙏🙏🙏🙏🙏🙏❤❤❤🙏🙏❤🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩

divyrajverma
Автор

How does adding and removing from a Queue inside for loop running against length of queue works?

sourabhkumbhar
Автор

I think instead of queue arraylist will do. 🤔

decostarkumar
Автор

Sir, please make a video on pass by reference and pass by value in java.

varunsharma
Автор

amazing sir
iski time complexity kya hai ???
it seems to be O(n^2) is it ?

rishabhgoyal
Автор

Har video pe like ka reminder dediya karo sir, bhool jate hai playlist ke flow me

akashmishra
Автор

Sir plz make video with love babbar sheet or any standard sheet, I really like the way you deliver the content but since all the contents are not available, I need to switch btw channels and the way ppl approach towards questions differs sir, so can you plz make it consistent.

manyasmriti
Автор

user input kaise le ??bufferreader ke alava ni h kya scanner class se?

rohitsorot
Автор

kya zehar btaya hai apne kya frequency thi .

AmanSharma-tndy