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

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025

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

  • @Abhay.Bhandari
    @Abhay.Bhandari 3 ปีที่แล้ว +6

    None of the lecture is available on TH-cam 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

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

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

    • @nikoo28
      @nikoo28  11 หลายเดือนก่อน +1

      well...now you know 😄

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

    Crystal clear explanation sir
    Thank you so much

  • @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!!

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

    it was a more efficient way than i thought

  • @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

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

    This was an amazing explanation, Nikhil. Thank you

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

    Great video! Good explanation.

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

    I'm your 1000th subscriber 🙂

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

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

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

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

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

    Thanks. very good explanation.

  • @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 :)

  • @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