javascript-spec / buildout-loud-hacktober

Learn DSA this October with Hacktoberfest 2022
1 stars 9 forks source link

Create Stack.cpp #12

Closed cuteipie closed 1 year ago

cuteipie commented 1 year ago

Stacks are a type of container adaptors with LIFO(Last In First Out) type of working, where a new element is added at one end (top) and an element is removed from that end only. Stack uses an encapsulated object of either vector or deque (by default) or list (sequential container class) as its underlying container, providing a specific set of member functions to access its elements.