950. Reveal Cards In Increasing Order | Queue | Simulation

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In this video, I'll talk about how to solve Leetcode 950. Reveal Cards In Increasing Order | Queue | Simulation
    Let's Connect:
    📝Linkedin: / aryan-mittal-0077
    📸 Instagram: / ez.pz.dsa
    📱Telegram : t.me/aryan_mittal_group
    🤖 Github: github.com/aryan-0077
    About Me:
    I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
    ✨ Hashtags ✨
    #programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Komentáře • 36

  • @harikrishnas1299
    @harikrishnas1299 Před 3 měsíci +11

    Hey aryan, If you manage to see this comment, I just want to say a big thanks! I was struggling with this question for the past 4 hrs, and after listening your approach again and again for sometimes, I was able to solve this on my own! Big thanks and please continue the same! Cheers !

  • @ishaanrawal9327
    @ishaanrawal9327 Před 3 měsíci +1

    Absolutely Beautiful explanation! This problem and your explanation truly attests the fact that DSA requires a lot of thinking and simply running after the "number of questions solved" would not help solely. Thanks Aryan!

  • @yidan_wang_ittan
    @yidan_wang_ittan Před 3 měsíci +4

    Hi Aryan, this tutotial is really explicit and easy to understand! Thank you!
    I wonder how you could realise that simulating the card revealing steps in the sorted input array can lead to the correct answer. I couldn't even think of it even I was solving this question today...

  • @ARYANMITTAL
    @ARYANMITTAL  Před 3 měsíci +21

    Kesa laga naya chasma 🤓😋?

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

    Wow you explained it better than Neetcode!!

  • @TurboTalesShortsYT
    @TurboTalesShortsYT Před 3 měsíci +5

    how many of u noticed he said "maqsad nahi bhulna h" 😂😂😂😂

  • @gilfoyle2211
    @gilfoyle2211 Před 3 měsíci +1

    maqsad nhi bhulna hai, smooth Aryan bhai smooth

  • @ShubhamSharma-sf8wk
    @ShubhamSharma-sf8wk Před 3 měsíci +1

    Best explanation on the internet, I was confused since the morning about this problem.

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

    You are always helpful buddy god bless you !!!

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

    This question seems to be achiveable but tricky. Thanks for your detailed explanation...

  • @vinaykosanam6060
    @vinaykosanam6060 Před 3 měsíci +2

    Editorial se dhono approaches chap dhiya bhai ne.. Lol

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

    Great Explanation Sir..

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

    great explanation brother ...

  • @raviyadav2552
    @raviyadav2552 Před 3 měsíci +3

    I feel its a bit tricky question,coz i was not able to reverse engineering it 😅

  • @madmaxgaming5864
    @madmaxgaming5864 Před 3 měsíci +2

    why is this algo working what is working at behind??

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

    Such a good explanation bro

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

    Bhaiya you explained very good but from the next time you must also explain taking a example also for the code like we do using pen and paper like taken the array or queue and then process it through every step of the code . Please bhaiya don't take it as negative. i love your work

  • @gvrreddy2756
    @gvrreddy2756 Před 3 měsíci +1

    Bro, How did you arrive at this intution

  • @user-jq7gn6iv3e
    @user-jq7gn6iv3e Před 3 měsíci

    🙏🏽

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

    can we use Array here instead of a queue?

  • @Adnankhan-rp2jp
    @Adnankhan-rp2jp Před 3 měsíci

    OG!

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

    add a break conditon in while loop

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

    1:35

  • @bishwashkumarsah171
    @bishwashkumarsah171 Před 3 měsíci +1

    i cant understand why this works

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

    class Solution {
    public:
    vector deckRevealedIncreasing(vector& deck) {
    int n=deck.size();
    sort(deck.begin(),deck.end());
    reverse(deck.begin(),deck.end());
    for(int i=0;i

  • @iamnoob7593
    @iamnoob7593 Před 6 dny

    could not understand ,

  • @Adnankhan-rp2jp
    @Adnankhan-rp2jp Před 3 měsíci

    my

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

    thnaku ....it's realy easy and simple exmplanation