3.2 Implementation of Stack using Array | Data Structure and Algorithm Tutorials
Вставка
- Опубліковано 7 вер 2019
- Here I have discussed Array based Implementation of Stack data structure. Explained all the operations(push, pop, peek, traverse) with C program.
DSA Full Course: https: • Data Structures and Al...
******************************************
See Complete Playlists:
C Programming Course: • Programming in C
C++ Programming: • C++ Complete Course
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
DAA Course: • Design and Analysis of...
Placement Series: • Placements Series
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
*********************************************
Connect & Contact Me:
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
#jennyslectures, #datastructures #stack
mam, you are one of the best instructors of data structures...
you haven t seen hanae talei
Samajrahe tho
hey how should i write a code in vscode plzz help me
@@sanapathisanyasirao6958 means bhai jaise type karte hai wais ekaro.
Waise kya problem hai
Codewithharry ko check nahi Kiya kya bro😂
pop("college stuff");
push(" jayanthi mam stuff");
thanks mam
Hhhhh
Yess
peek("youtube")
Yes guy
Haha
Hi Jayanti ma'am now you are like a GOD for so many of the Students, because in our India @ Degree Colleges so many of the Professors themselves they will not be knowing even the BASIC CONCEPTS also, only few Professors like you will be Excellent..We need Professors like you @ clgs..Love you ma'am as your Student😘😘😍
who is jayanti?....thts jenny
@@atashmohire884 😁🤣
@@atashmohire884 😂😂
Ma'am, you are one of the best teachers I've ever known. You've made it so easy for me to understand all the stuffs that my school teacher made so difficult. Thank you so much ma'am.
And u r one of the best beautiful girl ever see in the UA-cam 😍🥰
Implementation in C:
#include
#define N 5
int stack[N];
int top=-1;
void push()
{
int x;
printf("Enter data:");
scanf("%d",&x);
if(top==N-1)
{
printf("Overflow");
}
else
{
top++;
stack[top]=x;
}
}
void pop()
{
int item;
if(top==-1)
{
printf("Underflow");
}
else
{
item=stack[top];
top--;
}
printf("%d
",item);
}
void peek()
{
if(top==-1)
{
printf("Stack is empty");
}
else
{
printf("%d
",stack[top]);
}
}
void display()
{
int i;
for(i=top;i>=0;i--)
{
printf("%d\t",stack[i]);
}
}
void main()
{
int ch;
do
{
printf("Enter choice for operation: ");
scanf("%d",&ch);
switch(ch)
{
case 1:
push();
break;
case 2:
pop();
break;
case 3:
peek();
break;
case 4:
display();
break;
default:
printf("Invalid choice");
}
}while(ch!=0);
}
Can you implement this in java please
Out put please
Can someone tell me why we take n-1
if(top=n-1)
Why not
Top=n
@@Itz_Armaan03 bcz if stack size is 6 ,then its index starts from 0,1,2,3,4,5 so highest(last) index is 5,but the size is 6 thats the resaon we put top=n-1
top=5 means it reaches maximum size ,i think this will clear your doubt
Thanks a lot for this program
One of the simplest explanation on internet ! Thank you !! You earned a life long subscriber. Respect Mam. ☺
I am very lucky to find this video and having you as my teacher.
I m a lecturer at university. I learned teaching techniques from her ❤. She is amazing and really want to say thank you mam 🎉❤
Jayanti, I can't thank you enough. You are simply phenomenal.
Mam you are really a blessing for me in this pandemic.... when I need a teacher as like you....you resolve all my problems....
Thankyou so much.....
Semester exam in 1 hour,but feeling confident after watching your videos 😊
Unbelievable explanation and i become addicted of watching this channel.
thank you from Myanmar or Burma.
thank you, we really appreciate this.
from Ethiopia.
Thank you soo much, I've got an exam coming up and you saved me😍 and I'm sure so many more students like me. Your explanation method is soo crystal clear. Thank you.
Love and Respect,
From Sri Lanka.
Thank you ma'm
ua-cam.com/video/lU81ibOBthM/v-deo.html
mam, a standing salute for the effort you put into these videos, your teaching is simply amazing, even after 4 years people are relying on your videos, because no matter in which colleges we are , lecturers now a days don't take the burden of making things clear, and they expect us to understand everything without explaining what actually happens there....thank you from the bottom of my heart for the lectures mam ❤
Not my professor but you deserve my semester fees for ds algo
For real u are the best professor 😭😭
Like comment and subscribe with respect and do something in life .. mam will get proper value of her time .. 🙏
Yes
Ha paid kr do
Which clg from u belong , plz say me , I will not admit my child in that clg
Your lectures are really helpful during examination time mam... Thank you
Very very helpful videos....
It's not that our teacher does not teach us well but he does not elaborate properly so it's hard to understand but after seeing your lectures my all doubts are cleared so thank you very much😊
Extraordinary ma'am. It was so clear. Full concept was made easy to understand..
Thank you so much
Oh I Like The Way 😊 When U Teach Us in your own Style . you Are Great Teacher I Understand Everything Whatever U Teach Us 🙏. Thank You Mam.
Thank you mam for such a wonderful explanation.... It will be more blessings for us if you would start making videos on different competitive coding problems and algorithms.☺️
Mam ur lectures are simply awesome. I am following all your vedios.looking forward for more vedios for software engineering and theory of computation , cloud computing, network security as well madam
ma'am i'm literally in love with your explanations..all the stuff which our clg faculty teaches us in the lecture...i think sub-consiously at that time that will this topic be found on your channel?....im looking for learning the entire C frm your videos..i hope i will soon be able to do that! Thank you. love love❣❣❣💖
I Really Like Your Simple and Understandable way of Teaching Thank you I Had Watched Full And Now I Know the Stack Very Well thank You Once Again 🙏🙏🙏
Awesome teaching Mam ....Thanks A Lot for explaining everything in detail...........Your lectures are really helping me ...😊
After going through a lot of resources, i remembered Aunty Jenny makes it easy so i decided to come here and truly truly, my ma'am didn't disappoint : )
Ma'am understands student's mindset more than students
Great lecture
Thankyou ma'am 🙏🙏
Simply the best on UA-cam.
Thank you thank you so much ma'm my practical exams are there from tomorrow and from your videos I understand everything 👍👍❤️❤️❤️
4 days to the final exam and now i'm getting this as nothing ..... thank you maam this is really helpful .........love from Srilanka
You have just blown my mind! Thank you for making this hard-to-grasp concept exciting and understandable
Hello... Today i saw your video for the first time and found such a great stuff which i am looking for... Great teaching method 👍👍.. I am subscribing your chanel and hoping for some new good stuff... If u saw this comment then plzz reply😊
Thank You So Much Ma'am , these lectures are very easy to understand . Great work and keep it up !
thankyou madam if you have uploaded this video 4 years back .I would have scored more marks in this subject.Not so late now it is useful for my placements thankyou madam
Thanku mam... Tomorrow is my pre university exam... I am very much worried about this... Topic.. But after taking your lecture.. Now I feeling confident😊
Wow....bravoo..🔥🔥🎉...such an awesome teaching with simple english...very much easy to understand...thanq mam...😍
the most amazing thing is using some urdu/hindi words like "NAW' , "is me" ... you are a good teacher.. would love to meet uh if india issues a visa for meh hehehe.
Thanks mam 😊 for u r stack & array lecture... Its really great effort u have taken... Mam a small request .... Can u please create playlist on c++ computer language learning... It will be great help for me and my friends and many of the students too... Thank you so much mam 😊...
My doubts finally got cleared...Thank u so much mam😊😊
You are a great ma'am .you are very simple teaching the data structures and very few teacter in india
Thanks alot ma'am🙏😍 I had studied whole stack and tree with in one night and the very next Morning I score 55+ out of 77 in theory paper of 12 th premilary exam 😎
Good
very deeply discussed every topic.Keep it up
Well delivering knowledge
I am searching this concept last 1 week finally i got thanks ma'am
I was trying to learn stack since last four days.... Didn't understood anything
But after watching your videos....yeah I can say that i understood this... Thanks mam☺
didn't *understand
Ma'am how to set(or point) 'top' variable at uppermost element when stack is partially filled in order to push an element?
My guardian angel for my lab internals...... thank you soo much mam......
amazing explanation mam..God bless u....love from Ladakh .kashmir
helo mam? i want to ask that jab mene is code ko implement kiya toh mere output me jo 3 element wo repeat ho rha h aur 2 baar aarha h so what is that mistake?please see this and answer this
your explanation is crystal clear mam. Thanks for your efforts
It is really tough to understand the way you use to teach but thanks as you have made these lectures
Thanks mam for the video, your videos are best on youtube for data structures and algorithms
Thanks a lot mam i am very thankful to you.
i have learnt implementation of stack and queue. Your method of teaching is so good.
Keep it up. Make more informative videos.
Thank You so much Madam, Great Explanation !! from Sri lanka ❤
Mam You are the Best .... I can't Express the Confidence you gave to me through this Lecture 🥺
May You live Long and Healthy Life Ameen 💗
amazing explanation, wished you were my class teacher for data stucture.
thank you mam :-)
hello mam!
I am watching your videos for the first year from 1st sem now I am in 3rd sem still I study here I really understand everything thank you❤🌹🙏
Really man when i see Ur video lctr..na chkr bhii pdhne ka mn krta h
I have enjoyed your data structure lessons so far
Explained far better than university teacher. You are doing a good job. Keep it up!\
I salute your efforts miss ... I'm damn sure that your hard work will result in my placement one day...!!
Thanks and love from Indore ❤❤
You are simply great , you are way of teaching is great
Mam ! I love the way of teaching and instructing .👍
Ma'am the way you teach is really amazing
Mam u r just awesome ....
U helped me to complete my assignment ☺️
Mam ur videos clear my all doubts and ur explanation is too easy to understand
Mam you are telling very good explanation about implementation of stacks using arrays...
I think your video is changed my life ❤
Before watching ur video, I think that stack is very hard to implement. But now my all doubts are clear about stack. And I can easily implement the stack by using array of c.
Thank u mam!
ua-cam.com/video/lU81ibOBthM/v-deo.html
*_nice video mam....thank you so much for explaining in amazing way --_*
Great teacher i have ever seen.......♥️
Thank you ma'am.... you helped me alot...❤❤...for my internal.
Marvelous teaching mam I understood it crystal clearly👍
Mam Nice teaching of data structures really a respect and my humble from Tamil nadu🥰🥰🥰🥰
Thanks you so much mam for making easy to understand this concept 🙏🙏🙏
lovely, explaination.
actually , mam i want to read all my subjects from you, because i could not understand anything except your lectures.
And at last Iove you.
🤯😂😂
how will you get the sum of the element in the stack?
Mesmerizing Teaching mam really awesome mam!!!
Thank you mam for make this video. Your lecture videos are so helpful and nice.
Thank you so much mam for brilliant lectures 🥰🥰
I got a very good explanation of ds from your videos thank you so much ❤
Mam u r so pleasing , and your teaching is awesome
Next level teaching mam😍
Plz bring more FDS videos ... i am totally dependant on you🙂
Thanks mam
Your chanal is very helpful
Your chanal is like to a gift for us!
U r the best teacher of data structure
Thank you mam I need it very much
I can understand bette now than previous. Thank you
Very nice explanation! Thanks a lot.
Acha explanation ( mujhe smjh aa gaya) 👍
With your lectures I am good in DS
Thank u mam
Awesome presentation and explanation
Mam ,you are great. Lots of love and respect for you.
Tqs madam really you will be done the great job free classes will be tell and also you will be the record also madam in youTube in future. A. K. J 🙂
in pop() function if i want to pop any middle element of the stack but after middle element all remaining elements i want to print then your code will not work . pop() function
U are teaching iss sooo good mam , thanks for your good explanation 👍
Have Data structures exam tomorrow watching your video… Thank for your playlist😍
exams of 3 semester? or minor test
We love your way of teaching mam❤❤❤❤❤❤❤🎉🎉🎉🎉🎉
Wahoo kya explanation hai. Mam
Thanks mam
Thanks ma'am your lectures really helped me a lot ❤
Thank you for great explanation and i have understood
Thankyou mam for your videos they are really very helpful, keep going... 👍👍
Thank you Mam!! The best teacher indeed :)