the question-https://leetcode.com/problems/count-sorted-vowel-strings/
Please correct my code and tell me my mistakes
the question-https://leetcode.com/problems/count-sorted-vowel-strings/
Please correct my code and tell me my mistakes
Modified Code
if you have any doubt in this feel free to ask
for(int j=3;j>=0;j–){
why is the j counter startng from 3
and why is it v[j+1] and not v[J-1]
Also can u plz tell me what was wrong in my code???
will you understand the pattern which we have to use?
there are only 5 characters
and for any value of n there will be only 1 answer possible starting with u
so i have consider only 4 remaining characters from index 3 to 0
you can watch this video for better understanding
Count Sorted Vowel String
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.