Skip to content

Tag Archives: vowel-consonant

Given a string str[] of lower-case characters, the task is to make all characters of the string equal in the minimum number of operations such… Read More
Given two integers N and K, the task is to find the number of distinct strings consisting of lowercase alphabets of length N that can… Read More
Given a string S consisting of N lowercase characters, the task is to find the length of the longest substring that does not contain any… Read More
Given a string S consisting of N lowercase characters, the task is to find the length of the longest substring consisting of an even number… Read More
Given a string S of size N consisting of lowercase alphabets, the task is to print the length of the longest substring consisting only of… Read More
Given a string S of size N, the task is to sort the string without changing the position of vowels. Examples: Input: S = “geeksforgeeks”Output:… Read More
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