## Find the count of substrings in alphabetic order

Given a string of length consisting of lowercase alphabets. The task is to find the number of such substrings whose characters occur in alphabetical order.… Read More »

- Count the number of vowels occurring in all the substrings of given string
- Number of sub-strings which are anagram of any sub-string of another string
- Count distinct substrings that contain some characters at most k times
- Sub-strings of a string that are prefix of the same string
- Check if a string contains a palindromic sub-string of even length
- Minimum K such that every substring of length atleast K contains a character c
- Sub-strings of length K containing same character
- K-th lexicographically smallest unique substring of a given string
- Rearrange the string to maximize the number of palindromic substrings
- Count number of substrings with numeric value greater than X
- Find the count of palindromic sub-string of a string in its sorted form
- Minimum length substring with exactly K distinct characters
- Substring Reverse Pattern
- Check if suffix and prefix of a string are palindromes
- Minimum steps to remove substring 010 from a binary string
- Check if all the palindromic sub-strings are of odd length
- Check if the given string is K-periodic
- Maximum count of sub-strings of length K consisting of same characters
- Replace two substrings (of a string) with each other
- Find the count of substrings in alphabetic order
- String which when repeated exactly K times gives a permutation of S
- Count the number of common divisors of the given strings
- Python program to print the substrings that are prefix of the given string
- Sub-strings having exactly k characters that have ASCII value greater than p
- Number of ways in which the substring in range [L, R] can be formed using characters out of the range
- Python | Finding strings with given substring in list
- Distinct state codes that appear in a string as contiguous sub-strings

Given a string of length consisting of lowercase alphabets. The task is to find the number of such substrings whose characters occur in alphabetical order.… Read More »

Given a string str consisting of lowercase English alphabets, the task is to find the total number of palindromic sub-strings present in the sorted form… Read More »

Given a string of length N of lowercase characters containing 0 or more vowels, the task is to find the count of vowels occurred in… Read More »

Given a binary string, the task is to count the minimum steps to remove substring “010” from this binary string. Examples: Input: binary_string = “0101010”… Read More »

S is string containing only lowercase English alphabets. We need to find if there exists at least one palindromic sub-string whose length is even. Examples:… Read More »

Given a string ‘str’, two integers ‘k’ and ‘p’. The task is to count all the sub-strings of ‘str’ having exactly ‘k’ characters that have… Read More »

Given a string ‘S’ (composed of digits) and an integer ‘X”, the task is to count all the sub-strings of ‘S’ that satisfy the following… Read More »

Given a string ‘s’ check if all of its palindromic sub-strings are of odd length or not. If yes then print “YES” or “NO” otherwise.… Read More »

Given a string S. The task is to print the K-th lexicographically smallest one among the different substrings of s. A substring of s is… Read More »

Given a string ‘str’ and an integer ‘k’, the task is to count the number of sub-strings of length ‘k’ which are comprised of the… Read More »

Given a string ‘s’, the task is to check whether the string has both prefix and suffix substrings of length greater than 1 which are… Read More »

Given a string S consisting of lowercase characters(a-z) only, the task is to print a new string by rearranging the string in such a way… Read More »

Suppose we are given a string s1, we need to the find total number of substring(including multiple occurrences of the same substring) of s1 which… Read More »

Given an integer N, the task is to print all the substring of N without doing any conversion i.e converting it into a string or… Read More »