Tech Unleashed

Wohoo!! We're on YouTube

Sunday, 22 October 2023

C++ : Lecture 20: Stack & it's Implementation : Mastering Stack Made Simple !

 Mastering Stack Made Simple: Your Easy Guide to Data Structures !


STL implementation of Stack code [C++] :


#include<iostream>
#include<stack>

using namespace std;

int main()
{
    stack<int> st;

    st.push(1);
    st.push(2);
    st.push(3);

    st.pop();
    st.pop();

    cout<<st.top();


    cout<<st.size();
    
    return 0;
}

Hey, thanks for watching our video about Stack ! In this video we’ll walk you through:

- Concept of Stack

- Examples

- Terms in Stack

- Ways of Implementation

- STL implementation of Stack


All codes are available at my GitHub account, check them out here:

https://github.com/shyamkanth/Placements


Check out other videos from DS Revealed playlist: https://www.youtube.com/playlist?list=PLNXqJgOsTCZOB60T9HDhMf_o8RXbNWgqS


Check out our channel here: https://www.youtube.com/@DevelopersByte


Find us at: https://shyamkanth.github.io/


Timestamps:

0:00 Intro

0:35 Concept of Stack

6:12 Terms in Stack

9:45 Ways of implementation

11:03 STL implementation

20:32 Code

25:40 Revision

29:36 Outro


About our channel:

Our channel is about Revealing the secrets of Data Structure. We cover lots of cool stuff such as Codes, Concepts and Implementations.

Check out our channel here: https://www.youtube.com/@DevelopersByte

Don’t forget to subscribe!


Follow me on social media:

Get updates or reach out to Get updates on our Social Media Profiles!

GitHub: https://github.com/shyamkanth/

Instagram: https://instagram.com/still_23.6_8

Instagram personal: https://instagram.com/itz_sammmii

No comments:

Post a Comment