Akansha's blog

By Akansha, history, 12 months ago, In English,

can someone help me in this question that how can we solve this thanks in advance.

You are given with a string . Your task is to remove atmost two substrings of any length from the given string such that the remaining string contains vowels('a','e','i','o','u') only. Your aim is the maximise the length of the remaining string. Output the length of remaining string after removal of atmost two substrings. NOTE: The answer may be 0, i.e. removing the entire string.

Sample Input 2 earthproblem letsgosomewhere

Sample Output 3 2

 
 
 
 
  • Vote: I like it
  • -15
  • Vote: I do not like it

»
12 months ago, # |
  Vote: I like it +8 Vote: I do not like it

No

»
12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

how can one assure that the intermediate strings are present in any dictionaries ??

»
8 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Akansha (previous revision, new revision, compare).