Skip to content

Tag Archives: vowel-consonant

Given a string S of length N, the task is to count the number of anagrams of S whose first character is a consonant and… Read More
Given a string S of length N, the task is to sort the vowels of the given string in alphabetical order at place them accordingly… Read More
Given a string S, the task is to check if the string can be split into two substrings such that the number of vowels in… Read More
Given a string str, the task is to rearrange the characters of the given string such that the minimum distance between any pair of vowels… Read More
One person hands over the list of digits to Mr. String, But Mr. String understands only strings. Within strings also he understands only vowels. Mr.… Read More
Given a string S of length N containing lowercase alphabets. Two players A and B play a game optimally in turns, starting with player A.… Read More
Given a string S consisting of lowercase English letters, the task is to find the length of the longest substring from the given string, having… Read More
Given a string S of length N, the task is to find the number of non-empty substrings having even number of vowels. Examples: Input: N… Read More
Given an array arr[] of N strings. The task is to find the count of all possible pairs of strings such that their concatenations has… Read More
Given string str of lower case alphabets, the task is to find the minimum cost to change the input string in a string that contains… Read More
Given string str of size N, which contains lowercase English alphabets. The task is to replace each vowel with the next immediate vowel lexicographically, i.e., … Read More
Given a string S, the task is to count the number of positions by which the vowels have to be moved such that all the… Read More
Given string str of length N, the task is to find the longest substring which contains only vowels using the Binary Search technique.Examples:   Input: str… Read More
Given a string S, the task is to count all substrings which contains only vowels. Examples: Input: S = “geeksforgeeks” Output: 7 Explanation: Substrings {“e”,… Read More
Given string str consisting of lowercase alphabets, the task is to find the length of the longest substring such that all of its characters are… Read More