What is Stack Data Structure ? | Data Structure and Algorithms (DSA) | Part - 1

preview_player
Показать описание
Understand the working of Stack Data structure. Stack is a linear data structure which operates in a LIFO(Last In First Out) or
FILO (First In Last Out) pattern.
It is named stack as it behaves like a real-world stack, for example – a deck of cards or a pile of plates, etc.
Stack is an abstract data type with a bounded (predefined) capacity.
It is a simple data structure that allows adding and removing elements in a particular order.
The order may be LIFO(Last In First Out) or FILO(First In Last Out).
Standard Stack Operations -
1) push() -
Place an item onto the stack. If there is no place for new item, stack is in overflow state.
2) pop() -
Return the item at the top of the stack and then remove it. If pop is called when stack is empty, it is in an underflow state.
3) isEmpty() -
Tells if the stack is empty or not
4) isfull() -
Tells if the stack is full or not.
5) peek() -
Access the item at the i position
6) count() -
Get the number of items in the stack.
7) change() -
Change the item at the i position
8) display() -
Display all items in the stack
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
Support Simple Snippets by Donations -
---------------------------------------------------------------------------------------------
Simple Snippets Official Website -
Simple Snippets on Facebook -
Simple Snippets on Instagram -
Simple Snippets on Twitter -
Simple Snippets Google Plus Page -
Simple Snippets email ID -

#stack #datastructure #stackdatastructure #stackoperations
Рекомендации по теме
Комментарии
Автор

Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

SimpleSnippets
Автор

The guy's a real programmer. Even teaches in dark theme.

gtk_
Автор

The reason I'm passed this subject great job brother 💯❤️

-saipraneeth
Автор

Really helpful, this channel deserves more than a million subs...keep making these awesome videos ..!!!🎉

sumeetbansal
Автор

I have been a subscriber to your channel since last July 2019 and the day I watched your c++ videos one thing came to my mind " This is the channel" since in my third semester I have data structures and algorithm which you have already uploaded videos of which are helping me a lot, I will give my best to spread your channel with my colleagues and will tell them to go watch for just 5-7 minutes and decide whether to continue or not.
Thank you Tanmay Sakpal for your Energy 🔋, time, and effort.

vijaysinghchauhan
Автор

Plz bro continue this series....
Im 14 year old and i am interested in programming.... So i learn C++ and Java and want to learn dsa but i cant find any good tutorial except yours... Thanks💗💗

syed.muneebmalik
Автор

Is this real???
Am I really watching this type of quality videos with free of cost ??
😅
Bro u r explaining in a way that every student want to be.
And pls complete this course as early as possible :)

BTMECPRUDHVIDHANUSH
Автор

Bro! Please add a set of exercise/problems for all DS after code implementation video. Maybe as a link or a pdf file so that we can apply it to real world scenarios.

engineeringwithmehran
Автор

Thank you so much Tanmay for this tutorial...this is one of the best tutorials available for data structures!! Its really helpful....

priyankabisht
Автор

bro you are working on really good topics which are important in current cse engineering

genious
Автор

Thank you bro. You are only person who made me satisfied with explanation. Love you❤. God bless u.
Please complete this series

nitismita
Автор

Thankyou sir ❤❤
Your teaching style is awet❤❤

technicalstatusmuna
Автор

Its really helpful bhaiya....u hv done a great job and i wish u will keep it up

PankajSingh-enqq
Автор

Thanku bhaiya . Very nicely explained.and loved the real life examples u give. Thanku bhaiya for practical understanding u provide

kavitajha
Автор

Are bro it's look like(playlists of Ds) advance paid course... Thanks Alot for Giving

bharathkumargadi
Автор

Hey man, Thanks for the video, good explications you give many details for an better comprehension of stack containeur. I look forward the next video.

gilles.g
Автор

i visit multiple tutorial but your tutorial is awesome

abubakarchudhary
Автор

This series is crisp and concise. But, kindly recommend some practice /exercise questions to make best use of these tutorials.

TehreemAyesha
Автор

Thanks this is really great explanation. 💯. Great job man 👌

maxwachira
Автор

best teacher than university professors.❤❤✌✌

muzammalhussain