Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Strings
2.1K+ articles
Combinatorial
460+ articles
subsequence
434+ articles
Basic Coding Problems
371+ articles
substring
358+ articles
factorial
141+ articles
vowel-consonant
79 posts
Recent Articles
Popular Articles
Python Program to find if a character is vowel or Consonant
Last Updated: 23 July 2025
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' ....) are consonants.Examples:Input :...
read more
Python
Python Programs
vowel-consonant
Count the number of vowels and consonants in a Linked List
Last Updated: 11 February 2022
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:Input: Linked List:...
read more
Strings
Linked List
Searching
Algo Geek
Algo-Geek 2021
DSA
vowel-consonant
Find unique substrings consisting of only vowels from given String
Last Updated: 05 April 2022
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:Input: str = "G...
read more
Strings
Pattern Searching
Algo Geek
Algo-Geek 2021
DSA
Arrays
vowel-consonant
Longest substring containing exactly K vowels
Last Updated: 26 April 2023
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 (maybe repetitive...
read more
DSA
vowel-consonant
substring
Count the number of vowels occurring in all the substrings of given string | Set 2
Last Updated: 23 July 2025
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 occurred in all the substrings of the gi...
read more
Misc
Strings
DSA
vowel-consonant
Minimize changes to make all characters equal by changing vowel to consonant and vice versa
Last Updated: 23 July 2025
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 that in each operation eithe...
read more
Strings
C/C++ Puzzles
Mathematical
DSA
vowel-consonant
Length of the longest substring that does not contain any vowel
Last Updated: 23 July 2025
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 vowel.Examples:Input: S = “geeksfo...
read more
Strings
C/C++ Puzzles
DSA
sliding-window
vowel-consonant
substring
Distinct words of size N with at most K contiguous vowels
Last Updated: 11 May 2025
Given two integers n and k, count the number of distinct strings of length n of lowercase alphabets such that there are at most k consecutive vowels in any part of the str...
read more
DSA
vowel-consonant
Length of the longest substring consisting only of vowels in non-increasing order
Last Updated: 23 July 2025
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 vowels sorted in non-increasing o...
read more
DSA
HashSet
vowel-consonant
ASCII
substring
Length of the longest substring that contains even number of vowels
Last Updated: 23 July 2025
Given a string S consisting of N lowercase characters, the task is to find the length of the longest substring consisting of each vowel an even number of timesExamples:Inp...
read more
DSA
vowel-consonant
frequency-counting
Sort a string without altering the position of vowels
Last Updated: 23 July 2025
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: feeggkokreessExplanation:The ...
read more
Strings
Sorting
DSA
vowel-consonant
Count anagrams having first character as a consonant and no pair of consonants or vowels placed adjacently
Last Updated: 23 July 2025
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 no pair of consonants or vowels are adjacent to eac...
read more
Strings
Mathematical
Combinatorial
DSA
combinatorics
anagram
vowel-consonant
Modify string by rearranging vowels in alphabetical order at their respective indices
Last Updated: 23 July 2025
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 in their respective indices.Examples:Input...
read more
Strings
Sorting
DSA
vowel-consonant
Check if a string can be split into two substrings with equal number of vowels
Last Updated: 23 July 2025
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 both of them are equal. If found to be true, then p...
read more
DSA
vowel-consonant
frequency-counting
substring
partition
Rearrange a string to maximize the minimum distance between any pair of vowels
Last Updated: 23 July 2025
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 is maximum possible.Examples:Inpu...
read more
Strings
DSA
vowel-consonant
frequency-counting
1
2
3
4
5
6