950. Reveal Cards In Increasing Order | Queue | Simulation
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
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 !
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!
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...
Kesa laga naya chasma 🤓😋?
Old is gold...😅
Ab bs comment hi karne wala tha nya chasma, cool dikh rhe ho 😎😅
superb🤓😎
sexy
Ek Number bro
Wow you explained it better than Neetcode!!
how many of u noticed he said "maqsad nahi bhulna h" 😂😂😂😂
maqsad nhi bhulna hai, smooth Aryan bhai smooth
Best explanation on the internet, I was confused since the morning about this problem.
same
You are always helpful buddy god bless you !!!
This question seems to be achiveable but tricky. Thanks for your detailed explanation...
Editorial se dhono approaches chap dhiya bhai ne.. Lol
Great Explanation Sir..
great explanation brother ...
I feel its a bit tricky question,coz i was not able to reverse engineering it 😅
why is this algo working what is working at behind??
Such a good explanation bro
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
Bro, How did you arrive at this intution
🙏🏽
can we use Array here instead of a queue?
OG!
add a break conditon in while loop
1:35
i cant understand why this works
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
could not understand ,
my
thnaku ....it's realy easy and simple exmplanation