## Maximum String Partition

Given a string. The task is to find the maximum number P, such that given string can be partitioned into P contiguous substrings such that… Read More »

- Count substrings that contain all vowels | SET 2
- Minimum length substring with exactly K distinct characters
- Minimum number of times A has to be repeated such that B is a substring of it
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Count pairs of non-overlapping palindromic sub-strings of the given string
- Count of substrings which contains a given character K times
- Minimum number of sub-strings of a string such that all are power of 5
- Number of sub-strings that contain the given character exactly k times
- Maximum length palindromic substring such that it starts and ends with given char
- Queries to check if string B exists as substring in string A
- Queries to find the first non-repeating character in the sub-string of a string
- Maximum number of given operations to remove the entire string
- Length of the longest substring that do not contain any palindrome
- Count number of distinct substrings of a given length
- Length of the longest substring with no consecutive same letters
- Find distinct characters in distinct substrings of a string
- Minimum length of the sub-string whose characters can be used to form a palindrome of length K
- Largest substring with same Characters
- Find the count of sub-strings whose characters can be rearranged to form the given word
- Queries to find the last non-repeating character in the sub-string of a given string
- Check whether given string can be generated after concatenating given strings
- Longest substring of only 4's from the first N characters of the infinite string
- Count of sub-strings that do not contain all the characters from the set {'a', 'b', 'c'} at the same time
- Check if string can be made lexicographically smaller by reversing any substring
- Number of balanced parenthesis substrings
- Count of non-overlapping sub-strings "101" and "010" in the given binary string
- Check if the given string is K-periodic
- Generate all binary strings of length n with sub-string "01" appearing exactly twice
- Rearrange given string to maximize the occurrence of string t
- Longest sub string of 0's in a binary string which is repeated K times

Given a string. The task is to find the maximum number P, such that given string can be partitioned into P contiguous substrings such that… Read More »

Given an input string and a substring. Find the frequency of occurrences of a substring in the given string using pthreads. Examples: Input: string =… Read More »

Given a string str, the task is to repeat every substring of the string X number of times where X is the number composed of… Read More »

Given a string s of size N. The task is to find the largest substring which consists of same characters Examples: Input : s =… Read More »

Given a string str containing lowercase English characters, we can perform the following two operations on the given string: Remove the entire string. Remove a… Read More »

Given two strings A and B. The task is to find the minimum number of times A has to be repeated such that B is… Read More »

Given a balanced parenthesis string which consists of ‘(‘ and ‘)‘. The task is to find the number of balanced parenthesis substrings in the given… Read More »

Given binary string S of size N and a number K. The task is to find the Longest sub string of 0’s in the string… Read More »

Given a string str and a character ch, the task is to find the longest palindromic sub-string of str such that it starts and ends… Read More »

Given a binary string str, the task is to find the count of non-overlapping sub-strings of either the form “010” or “101”. Examples: Input: str… Read More »

Given a string str, the task is to find the count of distinct characters in all the distinct sub-strings of the given string. Examples: Input:… Read More »

Given a string str containing lowercase alphabets, the task is to count the sub-strings that contain all the vowels at-least one time and there are… Read More »

Given a string consisting of numerical alphabets, a character C and an integer K, the task is to find the number of possible substrings which… Read More »

Given a string str and an integer K, the task is to find the length of the longest sub-string S’ such that every character in… Read More »

Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »