Array Implementation of Stacks (Part 2)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • Data Structures: Array Implementation of Stacks (Part 2)
    Topics discussed:
    1) C program to push an element onto the stack.
    Data Structures: bit.ly/3hjudFV
    C Programming: goo.gl/7Eh2SS
    Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
    Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
    Contribute: www.nesoacademy...
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy...
    Website ► www.nesoacademy...
    Forum ► forum.nesoacade...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #DataStructuresByNeso #DataStructures #Stacks #ArrayImplementationOfStacks

ความคิดเห็น • 72

  • @nirmalaparitala
    @nirmalaparitala 11 หลายเดือนก่อน +23

    😢I have now words sir,your lecture is very very very veryyyyyy helpful..I am realising from my experience that you are the best teacher in TH-cam 😢Your videos are so different and sparks the brain 😮

  • @58_rejaul_mallik76
    @58_rejaul_mallik76 3 ปีที่แล้ว +48

    Thank you Neso Academy. sir please try to give us the whole data structure part as soon as possible🙏

    • @ashutoshrawat3396
      @ashutoshrawat3396 11 หลายเดือนก่อน

      do you got placed brother ?

  • @shashankramesh5629
    @shashankramesh5629 2 ปีที่แล้ว +18

    You saved my ass for my 1st data structures test. Will be referring to the whole course till my finals. Kudos for this great content..

  • @avijeetgorai3697
    @avijeetgorai3697 2 ปีที่แล้ว +13

    I wish I have teachers like you in my college

  • @priyankaghosal1685
    @priyankaghosal1685 3 ปีที่แล้ว +17

    Heyy!! Plzz continue the series🙏🙏
    It's saving many of us

  • @accessdenied9393
    @accessdenied9393 3 ปีที่แล้ว +10

    Since that, we increment first then assign, we can:
    void push(int data)
    {
    if (top == MAX-1)
    {
    puts("Stack is full");
    return;
    }
    stack[++top] = data;
    return;
    }

  • @ashishraj7217
    @ashishraj7217 3 ปีที่แล้ว +6

    Thank You So much @NesoAcademy to make DS very easy to understand. Waiting for upcoming videos.

  • @kalyan07parigi57
    @kalyan07parigi57 2 ปีที่แล้ว +3

    Excellent sir. Your voice gives enthusiasm in us. Please do more videos.

  • @minamorris891
    @minamorris891 2 ปีที่แล้ว +4

    Very beneficial as usual ... so many thanks

  • @xerxesasad
    @xerxesasad 2 ปีที่แล้ว +2

    Best teacher for Datastructures and Algo ever . Can you please make videos on sliding window max sum problems . Sliding window first negative num please .

  • @binitakumari2080
    @binitakumari2080 3 ปีที่แล้ว +5

    Thank u 🥺, plz upload more videos asap

  • @RajnishKumar-ev7wi
    @RajnishKumar-ev7wi 2 ปีที่แล้ว +2

    Thank you Neso Academy

  • @sanjaygunpal7860
    @sanjaygunpal7860 2 ปีที่แล้ว +2

    this channel is on god level

  • @starkpanther4471
    @starkpanther4471 3 ปีที่แล้ว +4

    sir, it's Epic explanation that u r doing please continue Full DSA 🙏

  • @shreya4907
    @shreya4907 7 หลายเดือนก่อน

    how simple way you explain this .thank you so much sir, keep making such videos

  • @hritikdubey994
    @hritikdubey994 2 ปีที่แล้ว +2

    Thank You sir your lectures help us a lot. Thank You

  • @jagadeshnayak5307
    @jagadeshnayak5307 3 ปีที่แล้ว +2

    Nice explanation
    I have learned this

  • @shitalpawar5848
    @shitalpawar5848 3 ปีที่แล้ว +2

    This is very helpful...! Thanks #Neso Academy😊

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 3 ปีที่แล้ว +2

    I love Neso Academy :)

  • @TamedRome
    @TamedRome 3 ปีที่แล้ว +2

    Thanks I was waiting for this

  • @zahid_9217
    @zahid_9217 ปีที่แล้ว +1

    Sir you are so easy to understand
    Thank you so much

  • @its_maneeshk_
    @its_maneeshk_ ปีที่แล้ว

    Thank you So much i like the way of yours teaching you just make any c problem simple

  • @subbusaketh56
    @subbusaketh56 4 หลายเดือนก่อน +25

    I will stop paying my college fees and come to your house everyday

    • @scelletonplays9044
      @scelletonplays9044 หลายเดือนก่อน +2

      That's called as tresspasing bro it is not legal = ) LOL

    • @Code890
      @Code890 11 วันที่ผ่านมา

      Really 🤯

  • @nitishkumargupta_2382
    @nitishkumargupta_2382 3 ปีที่แล้ว +2

    Plz upload every day one lecture 🙏🙏

  • @rakheegupta9788
    @rakheegupta9788 3 ปีที่แล้ว +2

    Nice explanation
    Music: Axol x Alex Skrindo - You [NCS Release]!!!!!!Nice song

  • @cs_39_sharma_priyansh75
    @cs_39_sharma_priyansh75 2 ปีที่แล้ว +4

    Can anyone plz tell for the push(4) the top is 3 so why 4 gets store in the stack and for push (5) the top is 4 and therefore it is not stored in stack but the condition is top = 3 so push(4) also should not get stored in stack ?

    • @maaz9868
      @maaz9868 ปีที่แล้ว +2

      Ayyo Damnn, i had the same question, but i realized, At push(4), the top is still 2, cuz the the line "top = top + 1" isn't executed yet. the "If" condition is ran first, so at that point top is still 2, then later, when the if condition is false, it then becomes 3

  • @mahamnaseer6435
    @mahamnaseer6435 ปีที่แล้ว

    thnk you Neso Acadmey its helpful the most☺☺

  • @maqadasjavaid2054
    @maqadasjavaid2054 ปีที่แล้ว

    great, i learn alot from this video. very good explanation.

  • @siddhantyadav4531
    @siddhantyadav4531 3 ปีที่แล้ว +2

    Good 👍👍👍

  • @hakimabahnu7722
    @hakimabahnu7722 ปีที่แล้ว +1

    It's such an amazing lecture, sir .. That's absolutely point to point ..
    Huge of respect from ladakh india..:-)

  • @sejalrai30
    @sejalrai30 2 ปีที่แล้ว

    sir's voice texture is amzing

  • @Deepak-qq3ug
    @Deepak-qq3ug ปีที่แล้ว +1

    Sir you are great but plz queues wale videos bhi youtube per free m upload kar do plz sir 😢

  • @subashkannan949
    @subashkannan949 3 ปีที่แล้ว +2

    Thank you Neso Academy!! nice explanation but some videos like file handling in c are paid make that free on youtube.....lol😂

  • @Slay_Sisters70
    @Slay_Sisters70 2 ปีที่แล้ว +1

    Thank you Sir g wo explaining in detail 🙏💕🎉💗✅💯👑😘😍😁

  • @amanbaliyan123
    @amanbaliyan123 ปีที่แล้ว +2

    Sir Top < Max bhi kar skte hai?

  • @saiumathakare3735
    @saiumathakare3735 ปีที่แล้ว

    This is how Stack Overflow was created

  • @Pretty-Skie
    @Pretty-Skie 11 หลายเดือนก่อน

    Thankyou so much sir😃

  • @rahulguggilam5120
    @rahulguggilam5120 3 ปีที่แล้ว +2

    Sir please upload lectures fast.

  • @SanthoshKumar-jo5uv
    @SanthoshKumar-jo5uv 3 ปีที่แล้ว +2

    Bro , make a video to implement stack using linked list

  • @areejaasna
    @areejaasna 3 ปีที่แล้ว +2

    sir complete the whole data structure asap sems are coming.

  • @nirmalaparitala
    @nirmalaparitala 11 หลายเดือนก่อน

    I wil refer your channel for my lifetime 😢🎉🎉🎉🎉🎉

  • @SabrinaXe
    @SabrinaXe 4 หลายเดือนก่อน

    8:35 return keyword

  • @deepaklucky1413
    @deepaklucky1413 3 ปีที่แล้ว +1

    Sir you are not uploading lectures in neso app..please upload in that and also continue the discrete maths course

  • @vinitgharat2333
    @vinitgharat2333 ปีที่แล้ว +2

    Hey Badge99 😉

  • @FaysalAsik
    @FaysalAsik ปีที่แล้ว

    I wish you made a video on DSA in python

  • @somasekharreddydanda392
    @somasekharreddydanda392 3 ปีที่แล้ว +1

    Please sir data structures syllabus complete videos upload as soon as possible please sir

  • @ravikumar-sq3bh
    @ravikumar-sq3bh ปีที่แล้ว +1

    After executing this code in vs code ,. We are getting message 4 time stack overflow

  • @yogeshr6510
    @yogeshr6510 7 หลายเดือนก่อน

    Since the program works only if we give numbers like 1,2,3,4 .
    What if we give numbers like 23 , 45 , 67, 89

  • @vgyuhfdeyjnkoop
    @vgyuhfdeyjnkoop 3 ปีที่แล้ว

    plz make tutorials on spring

  • @saadtariq1199
    @saadtariq1199 ปีที่แล้ว

    Class of this course🙌

  • @shubhamsagarsingh9451
    @shubhamsagarsingh9451 3 ปีที่แล้ว +1

    how long is this video lectures going to be?
    A rough idea please anyone?

  • @NarendraMuddada
    @NarendraMuddada 2 หลายเดือนก่อน

    sir i have a doubt
    is this possible to write like this
    in the push function if(top==max)
    then stack over flow occurs

    • @sunitakukreja6700
      @sunitakukreja6700 หลายเดือนก่อน

      No that wont work as max=4
      And as stack starts from 0 the positions are 0 1 2 3 so top will never be equal to max which is 4

  • @tayyabali129
    @tayyabali129 2 ปีที่แล้ว

    thank you very much sir for this palylsit that very thankful you to for explain in very easy way

  • @AkulaSriyan
    @AkulaSriyan 6 หลายเดือนก่อน

    Bro where is the function declaration 😢 plz reply

  • @dakudaku6333
    @dakudaku6333 ปีที่แล้ว

    Sir isko local variable kese krte hajn

  • @Bad_Agent
    @Bad_Agent ปีที่แล้ว

    7:20

  • @user-hw7lx7uf3h
    @user-hw7lx7uf3h 5 หลายเดือนก่อน

    where is the notes

  • @rajeshprajapati4863
    @rajeshprajapati4863 3 ปีที่แล้ว

    ❤️❤️❤️❤️❤️

  • @kajalmondal9745
    @kajalmondal9745 3 ปีที่แล้ว

  • @arulkumara2077
    @arulkumara2077 3 ปีที่แล้ว

    👌👌👌👌👌👌

  • @adityanayak8578
    @adityanayak8578 3 ปีที่แล้ว

    👍

  • @gambitjr8197
    @gambitjr8197 2 ปีที่แล้ว

    3 hours lecture in 11 minutes

  • @dhruvaggarwal8296
    @dhruvaggarwal8296 ปีที่แล้ว

    mera error ara hai int [data]me

  • @ayatshaikh786
    @ayatshaikh786 10 หลายเดือนก่อน

    #include
    #include
    #define max 10
    int stack [max],top=-1;
    void create();
    void pop ( );
    void peep();
    void push();
    int main()
    {
    int ch=1;
    int i;
    for (i=0; i=1&&ch0; i--)
    printf("%d", stack [i]);
    }
    Why my code is not working please anybody find out the mistake