was so elated to see that you've put out a video for today's contest :) by the way, will you be doing the second problem (vowels game in a string) for this contest as well? i had doubts in it and the way you tackle every little edge case and condition is amazing
Bro it;s greedy. See, Alice will go first. Consider that in a game each player, plays for itself and in the optimal case they will try to make their opponents loose. Case 1 : There are no vowels. (:( Alice cannot take anything thus Alice is defeated) Case 2 : There are either odd or even number of vowels -> If odd (Since Alice wants to defeat Bob, she takes the substring containing all the vowels thus leaving 0 vowels for BOB ) Alice wins -> If even (ALICE want's to win by defeating BOB, here also she takes substring containing odd number of vowels, leaving only 1 vowel for BOB) thus Bob won't have even vowels to pick, here also Alice wins!! CODE : I vowel count == 0, BOB wins Else ALICE winds PS : Alice is a bitch!!!!!!!!😂
The Approach is very good and intutive aryan
your explaination is really really good aryan bro
was so elated to see that you've put out a video for today's contest :)
by the way, will you be doing the second problem (vowels game in a string) for this contest as well?
i had doubts in it and the way you tackle every little edge case and condition is amazing
Bro it;s greedy.
See, Alice will go first. Consider that in a game each player, plays for itself and in the optimal case they will try to make their opponents loose.
Case 1 :
There are no vowels. (:( Alice cannot take anything thus Alice is defeated)
Case 2 : There are either odd or even number of vowels
-> If odd (Since Alice wants to defeat Bob, she takes the substring containing all the vowels thus leaving 0 vowels for BOB ) Alice wins
-> If even (ALICE want's to win by defeating BOB, here also she takes substring containing odd number of vowels, leaving only 1 vowel for BOB) thus Bob won't have even vowels to pick, here also Alice wins!!
CODE :
I vowel count == 0, BOB wins
Else ALICE winds
PS : Alice is a bitch!!!!!!!!😂
JUST BRILLIANT !!!!!!!!!!!!!!!!!!!!!!
aryan bhai op🫡
ha ha, was waiting for this itself
thanks
kya hi chumma explanation hai 😳
wow i can think like this ?
I had figured everything till 19:00 , I was blank aftermath
At 1:47 won't we require 3 ops instead of 2? I am confused on that part. Can someone pls clarify
Bhai saturday ke contest ka 4th problem ka solution upload karo na 😂😂
LOL bro
why
is it that difficult?
@@satwiktatikonda764 Bro only 69 people were able to solve it
I almost figured it out but time was done😅
how tf am i supposed to come up with this in contest?