Implementation of Stack using Arrays

Sdílet
Vložit
  • čas přidán 21. 07. 2024
  • Check our Website:
    In case you are thinking to buy courses, please check below:
    Link to get 20% additional Discount at Coding Ninjas: bit.ly/3wE5aHx
    Code "takeuforward" for 15% off at GFG: practice.geeksforgeeks.org/co...
    Code "takeuforward" for 20% off on sys-design: get.interviewready.io?_aff=takeuforward
    Crypto, I use the Wazirx app: wazirx.com/invite/xexnpc4u
    Take 750 rs free Amazon Stock from me: indmoney.onelink.me/RmHC/idje...
    Earn 100 rs by making a Grow Account for investing: app.groww.in/v3cO/8hu879t0
    Linkedin/Instagram/Telegram: linktr.ee/takeUforward
    ---------------------------------------------------------------------------------------------------------------------------------------------------- Pr-Requisites: None
    SDE sheet: bit.ly/takeUforward_SDE
    C++/Java Code: takeuforward.org/data-structu...
    ---------------------------------------------------------------------------------------------------------------------------
    ✅Use coupon-code "TAKEUFORWARD" for getting 15% for all Coding Ninjas courses: aff.codingninjas.com/click?o=...
    Please Please SUBSKRIIIBEEEEE the new channel: / @striver_79
    ---------------------------------------------------------------------------------------------------------------------------
    ✅Placement Series: • Let's give back to the...
    ✅Placement Series (Arrays, Sorting..): • C++ and Java |Brute-Be...
    ✅Hashing Playlist: • Two Sum Problem | Leet...
    ✅Greedy Playlist: • N meetings In One Room...
    ✅Recursion Playlist: • L8. Combination Sum | ...
    ✅Graph Playlist: • 3 MAJOR ANNOUNCEMENTS ...
    ✅Two Pointer Playlist: • 3 SUM | Brute | Better...
    ✅Binary Search Playlist: • Nth Root of a Number U...
    ✅LinkedList Playlist: • Reverse a Linked List ...
    ✅Advanced DS playlist: • Fenwick Tree Tutorial ...
    ✅Stack&Queue Playlist: • Implementation of Stac...
    ✅Greedy Algorithms: • N meetings In One Room...
    Problem Link: practice.geeksforgeeks.org/pr...
    ---------------------------------------------------------------------------------------------------------------------------
    ✅Use coupon-code "TAKEUFORWARD" for getting 10% for all GFG courses: bit.ly/tuf_gfgCourse​
    ---------------------------------------------------------------------------------------------------------------------------
    If you appreciate the channel's work, you can join the family: bit.ly/joinFamily​
    ✅Thumbnail Creator: / rikonakhuli
    ✅ Striver's Linkedin Profile: / ​
    ✅ Instagram: / ​
    ✅Connect with us: bit.ly/tuftelegram​ (Use Link in Mobile only, if not works search "takeUforward" in telegram)..
    #dsa​ #striver #leetcode
    ---------------------------------------------------------------------------------------------------------------------------
    ✅Coding Ninjas Discount Link: aff.codingninjas.com/click?o=...
    Please Please SUBSKRIIIBEEEEE the new channel: / @striver_79
    ---------------------------------------------------------------------------------------------------------------------------
    ✅This is where I teach: ----- Use coupon-code "TAKEUFORWARD" for getting 10% on my course at GFG: bit.ly/striver_cpCourse​
    ✅Use coupon-code "TAKEUFORWARD" for getting 10% for all GFG courses: bit.ly/tuf_gfgCourse​
    ---------------------------------------------------------------------------------------------------------------------------
    If you appreciate the channel's work, you can join the family: bit.ly/joinFamily​
    ✅Thumbnail Creator: / rikonakhuli
    ✅ Striver's Linkedin Profile: / ​
    ✅ Instagram: / ​
    ✅Connect with us: bit.ly/tuftelegram​ (Use Link in Mobile only, if not works search "takeUforward" in telegram)..
    #dsa​ #striver #leetcode

Komentáře • 74

  • @yogiandyukti9433
    @yogiandyukti9433 Před 3 lety +2

    Thanks bhaiya, youtube pe aapse accha koi explain nhi krta. Best of the best ho aap. Please please please yeh series thodi jaldi se complete kr dejea.

  • @AjaySharma-ht1gl
    @AjaySharma-ht1gl Před 3 lety +10

    Understood. Thanks a lot bhaiya for putting up ur efforts and helping all of us!!

  • @vattiyeshwanth282
    @vattiyeshwanth282 Před rokem +12

    No doubt at all !! You are one of the best teachers I have seen up to now!

    • @iamchiraggupta
      @iamchiraggupta Před 3 měsíci

      hey! man can u tell me the correct oder to watch striver playlist

    • @akworld2739
      @akworld2739 Před 3 měsíci

      @@iamchiraggupta go through a2z

  • @takeUforward
    @takeUforward  Před 3 lety +8

    Do write "understood" if you understood, motivates me :)
    Insta: instagram.com/striver_79/​

    • @PremKumar-rd1uv
      @PremKumar-rd1uv Před 3 lety

      Understood bro

    • @written_syntax
      @written_syntax Před 3 lety

      understood.

    • @urbirooj5413
      @urbirooj5413 Před 3 lety

      Hi Vikramaditya when I tried to click on your Telegram link I got an error saying there is no Telegram account with this username.

    • @takeUforward
      @takeUforward  Před 3 lety

      @@urbirooj5413 search “takeuforward” in telegram

  • @numanansari091
    @numanansari091 Před 5 měsíci +2

    Hi @takeuForward
    Thank you for such an amazing videos. from where can I get this problem list (google doc)? please provide.

  • @purellajajisaipavankumar651

    Thank you. Also, make a video on implement n stacks using an array if possible pls

  • @annechepkeitany7070
    @annechepkeitany7070 Před 2 lety +8

    Great explanation. Could you please share the software for that you're using for the illustrations?

  • @abhimanyu6534
    @abhimanyu6534 Před 3 lety +7

    Plz cover the other questions of bit manipulation(SDE sheet) and your CP sheet problems

  • @x12624
    @x12624 Před 2 lety +1

    What writing pad software are you using? Could anyone please let me know.

  • @tanvirhasanmonir1627
    @tanvirhasanmonir1627 Před rokem +2

    Wonderful explanation in such a simple way! Thanks a lot.

  • @shrad6611
    @shrad6611 Před 2 lety +2

    simple and to the point

  • @sauravgupta6166
    @sauravgupta6166 Před 2 lety +2

    Which black board software do you use bro?

  • @vishnusreddy
    @vishnusreddy Před 2 lety +10

    Hey, thanks for this video. Was just wondering if you guys know how to implement three stacks in a single array?

    • @anurondas3853
      @anurondas3853 Před rokem

      I can do two stacks in one array. Not sure about three🤔.

    • @mriduljain1981
      @mriduljain1981 Před rokem

      @@anurondas3853 same , i did that in love babbar's video 😅

  • @x12624
    @x12624 Před 2 lety +2

    When you do top-- for pop(), the element in the array stays, correct? We are decreasing just the index, how is it going to remove the element?

    • @Avinashkumar-yq2zr
      @Avinashkumar-yq2zr Před 2 lety

      Yes the element is in the array. But we are using the top pointer to access the members..
      and it satisfies the LIFO condition.

    • @deviprasad_bal
      @deviprasad_bal Před 2 lety

      what we are aiming for is, our algorithm using array to work just like stack function. So, it doesn't matter if anything's up with the array, since our output will satisfy the stack output conditions.

    • @anurondas3853
      @anurondas3853 Před rokem +2

      Imagine that I do a push operation after a pop operation. For the pop operation, I know, I did top--, so the element is still there, but when I do a push operation, I do arr[++top] = num. Thus the same number which was the top before gets overwritten, as if it was never there. Hope it helps.

  • @ayushisingh4354
    @ayushisingh4354 Před 3 lety +7

    in gfg i am getting implicit function error for push and pop functions. how can i resolve it?

  • @KJeyaChithra-do5vh
    @KJeyaChithra-do5vh Před měsícem +3

    Bro .... U are my hero 🦋

  • @selene8721
    @selene8721 Před 2 měsíci +1

    Thank you so much!

  • @kritidiptaghosh1009
    @kritidiptaghosh1009 Před 2 lety

    Helpful video

  • @atanusaha8374
    @atanusaha8374 Před 3 lety

    Thanks🙏

  • @012akashh
    @012akashh Před 3 lety +1

    Superb buddy 👌

  • @vodnalasricharan1323
    @vodnalasricharan1323 Před 3 lety +2

    Understood

  • @noobcoder7827
    @noobcoder7827 Před 3 lety +2

    I think practice problem link is power set ,isn't it?

  • @hardikpatel352
    @hardikpatel352 Před měsícem

    Thanks a lot

  • @shivambajpeyi9008
    @shivambajpeyi9008 Před 2 lety

    smooth!

  • @satyampande684
    @satyampande684 Před 2 lety

    understood!!

  • @pradyumnakulkarni2187
    @pradyumnakulkarni2187 Před 3 lety

    SDE SHEET LINK IS NOT WORKING

  • @jsuryakt
    @jsuryakt Před 3 lety +1

    Understood ❤️

  • @anmolsingh4026
    @anmolsingh4026 Před 3 lety +1

    understood

  • @Tarunkumar_Gatla
    @Tarunkumar_Gatla Před 3 lety +4

    Why did u add such a easy problem in the sheet?
    Are these types of problems also asked in the interviews?

    • @takeUforward
      @takeUforward  Před 3 lety +14

      Yes, if multiple questions are asked in an interview in an hour, they might ask you this :) along with implementation of queue/pq and other stuffs.
      Also am not picking easy questions, i do according to the sheet. I did not skip when it was a tough one xD

    • @rajnandini9862
      @rajnandini9862 Před 3 lety +2

      yes, infact a big yes, implementation of these data structures are necessary to know. how these works internally. Once implementation of heap has been asked in amazon interview. So u should focus on these too. Hope it clears your doubt. :)

    • @takeUforward
      @takeUforward  Před 3 lety +2

      @@rajnandini9862 yes am thinking of making a playlist of implementation of ds

    • @rajnandini9862
      @rajnandini9862 Před 3 lety

      @@takeUforward that would be great sir... Thank you so much, plz make it before the placement starts. 🤞

    • @rajnandini9862
      @rajnandini9862 Před 3 lety +1

      @@takeUforward can't thank you enough for this sde sheet... Although i have already solved many problems from the sheet still i see your explanation because that is so crystal clear and clear all my doubts.

  • @roughuse.jaiganesh
    @roughuse.jaiganesh Před rokem

    understood.

  • @user-ym1nv1pw8i
    @user-ym1nv1pw8i Před 24 dny

    Understood!

  • @naveenkamath2882
    @naveenkamath2882 Před 3 lety +1

    Bhaiya
    Make a video on how u able to stay awake till 4am everyday
    What is your sleeping hrs etc
    Will be helpful?

  • @lakshmiprasanna7058
    @lakshmiprasanna7058 Před rokem

    Understood 💯💯💯

  • @vodnalasricharan1323
    @vodnalasricharan1323 Před 3 lety +4

    When is the tree playlist coming?

  • @nitishprasadkushwaha
    @nitishprasadkushwaha Před 2 lety

    u are the bestttt

  • @Goodvibes12347
    @Goodvibes12347 Před 3 lety +6

    Bro make a video on how to move our job from india to abroad through the same company and about salary hikes

  • @sarangkumarsingh7901
    @sarangkumarsingh7901 Před 25 dny

    🙂

  • @rahulhembram4519
    @rahulhembram4519 Před 5 měsíci

    UnderStood

  • @preetikushwaha8734
    @preetikushwaha8734 Před 3 lety +1

  • @mayankjain5682
    @mayankjain5682 Před 2 lety +4

    very poor way of implementation without maintain checks of overflow and underflow. Also,we should we dynamic allocation always to deal with space issue regarding number of user inputs

  • @tirumallurivenkatapavankum135

    Understood

  • @ashokdurunde1814
    @ashokdurunde1814 Před 2 lety

    Understood. Thanks a lot bhaiya for putting up ur efforts and helping all of us!!

  • @tanishkumar6682
    @tanishkumar6682 Před rokem

    understood

  • @sarthakbhatia7888
    @sarthakbhatia7888 Před rokem +1

    Understood

  • @anujrawat6304
    @anujrawat6304 Před 2 lety

    Understood

  • @roopeshn3301
    @roopeshn3301 Před rokem

    Understood

  • @swathigp3818
    @swathigp3818 Před 2 měsíci

    Understood

  • @sumitapathak2900
    @sumitapathak2900 Před 7 měsíci

    Understood

  • @chiragbansod8252
    @chiragbansod8252 Před 3 měsíci

    understood

  • @shaiksoofi3741
    @shaiksoofi3741 Před 18 dny

    understood