Hackwithinfi questions

Oh! Now I got it. It should contain ALL the vowels, (a,e,i,o,u). I was considering each string should contain at least 1 vowel.

can any one please explain me 1st problem how it is working

I also get it now …

This means you are interested the subtring length must be 5

hay bro bhargavi please explain the first question i am getting confused

it must not be 5 it may be more than 5 .but if we take worst case the length of the substring should be 5.
eg:
string=“aaeioua”
substring1=aaeiou
substring2=aeiou
substring3=eioua
substring4=aeioua
lengths are different

hay please explain first question bhargavi…

in that first query we have to print the array of no of stars ,those stars represents the no of stars between consecutive |'s.
eg:
(star(astric )cant be able to write in this .
so i represents like %)
|%|%|%%|%%
so ans to this is (1,1,2)
because the no of stars between 1st| and 2nd| are 1
the no of stars between 2nd| and 3rd| are 1
the no of stars between 3rd| and 4th| are 2
dont calculate last 2 stars because they are not in between |'s

1 Like

so fro second example it should be 2 as 2 star lies but you write 0 why?

Yes, I thought the same, for second example answer should be 2.

How much questions u solved completely

I think your examples are wrong
Ans of first example should be 2 0
and Ans of second example should be 2