Given a character, check if it is vowel or consonant. Vowels are ‘a’, ‘e’, ‘i’, ‘o’ and ‘u’. All other characters (‘b’, ‘c’, ‘d’, ‘f’… Read More
Tag Archives: vowel-consonant
Given a string str[] of length N of lowercase characters containing 0 or more vowels, the task is to find the count of vowels that… Read More
Given a linked list containing lowercase English alphabets, the task is to count the number of consonants and vowels present in the linked list. Example:… Read More
Given string str of size N consisting of uppercase and lowercase English letters. The task is to find all unique substrings containing only vowels. Examples:… Read More
Given string str containing both uppercase and lowercase letters, and an integer K. The task is to find the longest substring containing exactly K vowels… Read More
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