HackerRank - Queue Using Two Stacks | Full Solution with Examples and Visuals | Study Algorithms

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

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

  • @Abhay.Bhandari
    @Abhay.Bhandari 3 года назад +6

    None of the lecture is available on RUclips which has such kind of explanation.
    I really appreciate the way you explain. I would say, "Teaching is an art and you are the great artist."
    Thanks!

  • @pasej5
    @pasej5 Год назад +1

    this video deserves more likes, you made it easy to understand

  • @suhas8882
    @suhas8882 5 месяцев назад

    Crystal clear explanation sir
    Thank you so much

  • @mrhuntsman5623
    @mrhuntsman5623 29 дней назад

    it was a more efficient way than i thought

  • @sdkaraarslan
    @sdkaraarslan 11 месяцев назад

    gosh i really needed your channel, where were you this whole time!

    • @nikoo28
      @nikoo28  11 месяцев назад +1

      well...now you know 😄

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

    You are damn good on how simply you explain the problem ,i really appretiate you.
    Make such type of videos

    • @nikoo28
      @nikoo28  3 года назад

      Thank you so much for your support

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

    I usually don't comment on videos, But after your explanation I just couldn't hold back. Great job, Thanks!!

  • @brinderdhaliwal3570
    @brinderdhaliwal3570 Год назад

    This was an amazing explanation, Nikhil. Thank you

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

    Bro first time I'm commenting on any video
    This is the best best best explanation in very less time 👌👌
    Keep it up... 👍👍

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

      Glad you liked it. Please share this video with your friends if you can :)

  • @rohitsaka
    @rohitsaka 3 года назад

    Damn ! You're so Good Bro, Great Content and High Quality Explanation.

  • @zencither9482
    @zencither9482 3 года назад

    Dude you're great! Very good teaching, thank you

  • @kostyafarber8716
    @kostyafarber8716 2 года назад +1

    Great video! Good explanation.

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

    I'm your 1000th subscriber 🙂

  • @abhishes
    @abhishes Год назад +1

    Thanks. very good explanation.

  • @dr5832
    @dr5832 Год назад

    man you're awesome

  • @_PrajaktaMokale
    @_PrajaktaMokale 3 года назад +1

    Thank you sir🥰🥰

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

    Does this mean that we simply have to display the elements of the queue using two stacks? Means the output stack should read the same elements as that of the queue right?

    • @nikoo28
      @nikoo28  3 года назад +1

      This means that you are simulating a queue data structure without actually using a queue.
      You are implementing push and pop operations for a queue but with the help of stacks.
      Think of a scenario when you don’t have resources for a queue. You can then use this method. :)

    • @annoyedbrownalpaca
      @annoyedbrownalpaca 3 года назад

      @@nikoo28 but what does it mean by two stacks? what is the difference between that and 1 stack

    • @nikoo2805
      @nikoo2805 3 года назад

      @@annoyedbrownalpaca it means that you have to use 2 independent stacks to simulate a queue data structure operations

  • @EgorChebotarev
    @EgorChebotarev 8 месяцев назад

    not bad