C++ Programming Language Tutorial | Stacks and Queues using STL | GeeksforGeeks

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • Find Complete Code at GeeksforGeeks Article: www.geeksforge...
    www.geeksforge...
    This video is contributed by Parikshit Kumar Pruthi
    Please Like, Comment and Share the Video among your friends.
    Install our Android App:
    play.google.co...
    Follow us on Facebook:
    / gfgvideos
    And Twitter:
    / gfgvideos
    Also, Subscribe if you haven't already! :)

Комментарии • 22

  • @bharadwajdonthula7582
    @bharadwajdonthula7582 6 лет назад +24

    dude u just made me learn queues and stacks in 4 mins

    • @aryanverma7800
      @aryanverma7800 3 года назад +2

      yes but not from interview point of view

  • @shubham.papnai
    @shubham.papnai 5 лет назад +2

    Please continue making more on c++, ur making things crystal clear, short and simple.

  • @gurunarayana1382
    @gurunarayana1382 3 года назад +3

    your tutorials are awsome but can you work on the audio its too low

  • @amur_
    @amur_ 6 лет назад +2

    I have a doubt. For Competitive Programming, Do we need to know how to write the data structure without using its library? I know what stack is and how it works. I know how to make a Stack. But I am not sure if I can make a stack without using stack library file. So Do I need to learn DS without using their libraries too?

    • @aqeebhj5467
      @aqeebhj5467 6 лет назад

      yes, you need to learn DS for the gate and other compt exams :)

  • @aqeebhj5467
    @aqeebhj5467 6 лет назад +1

    sir can make some videos like this for c++ OOPs concepts
    thanks in advance:)

  • @RasGun_Travels_Life_Journey
    @RasGun_Travels_Life_Journey 4 года назад +1

    greatly explained

  • @tomfranky1744
    @tomfranky1744 2 года назад

    What's the name of the text editor you're using in this video, please?

  • @kowsiganr1058
    @kowsiganr1058 2 года назад

    Bro vera level🔥🔥🔥

  • @Fresherjobs24x7
    @Fresherjobs24x7 5 лет назад +1

    we write q.push or s.push in queue

    • @shubham.papnai
      @shubham.papnai 5 лет назад +1

      Chaitanya Sandeep doesn't matters. q or s or any other variable is just a stack variable or a queue variable, u can choose any variable name.

  • @ayushjindal4981
    @ayushjindal4981 6 лет назад +1

    what was the logic behind using the extra stack object?

    • @HimanshJainYTube
      @HimanshJainYTube 5 лет назад +1

      We just want to print the stack. We don't want to delete it. So we make a copy of it to print it.

  • @raghavnandwani4890
    @raghavnandwani4890 5 лет назад

    Why did you copy both stack and queue before poping and printing?

    • @AarushAgarwal
      @AarushAgarwal 4 года назад

      So that original values are retained and only the values in the temporary variable are popped

  • @karanh
    @karanh 6 лет назад

    why did we use a temporary variable for printing a stack?

    • @mankaransingh2599
      @mankaransingh2599 5 лет назад +2

      To preserve our original stack.
      pop operation removes element from the stack, so we dont need that to happen with our original stack

  • @thinkanddo2352
    @thinkanddo2352 6 лет назад +1

    Thank you sir!

  • @scorpionnafis5703
    @scorpionnafis5703 4 года назад

    thanks bro❤️

  • @lol-bo7ro
    @lol-bo7ro 3 года назад

    You're from??

  • @kartikjaiswal8923
    @kartikjaiswal8923 5 лет назад

    i love u gog