Level Order line wise - Zig Zag | Solution

  Рет қаралды 29,767

Pepcoding

Pepcoding

Күн бұрын

Пікірлер: 23
@jiosim1377
@jiosim1377 3 жыл бұрын
Im from c++ background but for whenever i dont understand any question from the course that im doing i directly come to your lectures and the question becomes crystal clear!!!
@md.yasirarafat4581
@md.yasirarafat4581 2 жыл бұрын
you are best cs teacher .Learning from Bangladesh.
@soumyaagrawal9045
@soumyaagrawal9045 3 жыл бұрын
You make the concept quite clear to the students which increases more interest in coding and watching your upcoming videos.
@shubhamchoubey3948
@shubhamchoubey3948 2 жыл бұрын
Bhaiya, apke yaha aake lagta hai o bhai saab ab toh mai kisi aur ko v samjha sakta hu ye question 🔥
@surajmodanwal3726
@surajmodanwal3726 Жыл бұрын
I dont know pepcoding ka kya hua ab, but sumeet sir is one of the best teacher i ever met.
@sasidharnaidu4507
@sasidharnaidu4507 Жыл бұрын
I was able to implement the same, but using queues 🎉
@MrDishajain
@MrDishajain 3 жыл бұрын
Hi Sir, Your solution is quite easy to understand and your way of teaching is awesome . But apke solution are not the best or optimal approach with least space or time complexity. Could you please start from brute force method and then take us to optimal solution because in interview we can not use this much of space complexity.
@anjneykumarsingh4461
@anjneykumarsingh4461 3 жыл бұрын
Then join live clasess
@LegitGamer2345
@LegitGamer2345 3 жыл бұрын
this is an optimal solution though
@LegitGamer2345
@LegitGamer2345 3 жыл бұрын
and in most of the videos sir explains optimal solution , it is up to you to come up with a brute force solution
@mickyman753
@mickyman753 3 жыл бұрын
level 1 is for learning ,not for interview prep , try doing level 2 , there almost of the level 1 problem's most optimal approach is tackled
@nishcarshnigam6934
@nishcarshnigam6934 2 жыл бұрын
superb collection of videos
@mohammednooruddin4165
@mohammednooruddin4165 10 ай бұрын
If we use main queue and child stack we get same zig zag order
@AyushKumar-qz7cg
@AyushKumar-qz7cg 3 жыл бұрын
goood video
@Pepcoding
@Pepcoding 3 жыл бұрын
Thank you so much and If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@decadewgame9802
@decadewgame9802 2 жыл бұрын
Which application do you use for drawing and explaining concepts?
@054_heenaahmed8
@054_heenaahmed8 2 жыл бұрын
openboard
@RassiDIY
@RassiDIY 3 жыл бұрын
Hello Sir. Can you share the complete code?
@kritmol7783
@kritmol7783 4 жыл бұрын
Sir is question me Queue use kyu nhi kri apne? like previous question LevelOrder Linewise me kri thi
@em_nikhil_007
@em_nikhil_007 4 жыл бұрын
Lo bhai aapki isksha puri kar di gyi void l_order_linewise_zigzag(Node *root){ bool f=true; queue q; stack st; q.push(root); while(q.size()>0){ cout=0;i--){ st.push(q.front()->children[i]); } } q.pop(); if(q.size()==0){ while(st.size()>0){ q.push(st.top()); st.pop(); } f=!f; cout
Level Order Traversals - More Approaches
22:54
Pepcoding
Рет қаралды 14 М.
Display a Generic Tree
17:21
Pepcoding
Рет қаралды 28 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 292 М.
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,4 МЛН
L21. Vertical Order Traversal of Binary Tree | C++ | Java
18:53
take U forward
Рет қаралды 360 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 918 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Linearize a Generic Tree | Solution
8:36
Pepcoding
Рет қаралды 17 М.