C++ Programming Language Tutorial | Stacks and Queues using STL | GeeksforGeeks
HTML-код
- Опубликовано: 23 ноя 2024
- Find Complete Code at GeeksforGeeks Article: www.geeksforge...
www.geeksforge...
This video is contributed by Parikshit Kumar Pruthi
Please Like, Comment and Share the Video among your friends.
Install our Android App:
play.google.co...
Follow us on Facebook:
/ gfgvideos
And Twitter:
/ gfgvideos
Also, Subscribe if you haven't already! :)
dude u just made me learn queues and stacks in 4 mins
yes but not from interview point of view
Please continue making more on c++, ur making things crystal clear, short and simple.
your tutorials are awsome but can you work on the audio its too low
I have a doubt. For Competitive Programming, Do we need to know how to write the data structure without using its library? I know what stack is and how it works. I know how to make a Stack. But I am not sure if I can make a stack without using stack library file. So Do I need to learn DS without using their libraries too?
yes, you need to learn DS for the gate and other compt exams :)
sir can make some videos like this for c++ OOPs concepts
thanks in advance:)
greatly explained
What's the name of the text editor you're using in this video, please?
Bro vera level🔥🔥🔥
we write q.push or s.push in queue
Chaitanya Sandeep doesn't matters. q or s or any other variable is just a stack variable or a queue variable, u can choose any variable name.
what was the logic behind using the extra stack object?
We just want to print the stack. We don't want to delete it. So we make a copy of it to print it.
Why did you copy both stack and queue before poping and printing?
So that original values are retained and only the values in the temporary variable are popped
why did we use a temporary variable for printing a stack?
To preserve our original stack.
pop operation removes element from the stack, so we dont need that to happen with our original stack
Thank you sir!
thanks bro❤️
You're from??
i love u gog