## Maximum number of removals of given subsequence from a string

Given a string str, the task is to count the maximum number of possible operations that can be performed on str. An operation consists of… Read More »

- Count common characters in two strings
- Repeated Character Whose First Appearance is Leftmost
- Convert character array to string in C++
- Count substrings that contain all vowels | SET 2
- Find the longest string that can be made up of other strings from the array
- Minimum number of times A has to be repeated such that B is a substring of it
- Count of integers of length N and value less than K such that they contain digits only from the given set
- Check for balanced parentheses in an expression | O(1) space | O(N^2) time complexity
- Check whether two strings contain same characters in same order
- Rearrange characters in a string such that no two adjacent are same using hashing
- Generate all permutations of a string that follow given constraints
- Program to find the kth character after decrypting a string
- Java program to check whether a string is a Palindrome
- Check if two strings are same ignoring their cases
- Minimum number of adjacent swaps to convert a string into its given anagram
- Maximize the happiness of the groups on the Trip
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Program to generate all possible valid IP addresses from given string | Set 2
- Find the number of binary strings of length N with at least 3 consecutive 1s
- InfyTQ 2019 : Find the position from where the parenthesis is not balanced
- Implement a Dictionary using Trie
- Minimum rotations required to get the same String | Set-2
- Check if a string can be obtained by rotating another string d places
- Count pairs of non-overlapping palindromic sub-strings of the given string
- Append a digit in the end to make the number equal to the length of the remaining string
- Count of substrings which contains a given character K times
- C++ program to compare two Strings using Operator Overloading
- Minimum number of sub-strings of a string such that all are power of 5
- Reverse individual words with O(1) extra space
- Persistent Trie | Set 1 (Introduction)

Given a string str, the task is to count the maximum number of possible operations that can be performed on str. An operation consists of… Read More »

Given a string str, the task is to split the string into minimum parts such that each part is of same length and each part… Read More »

Given a string str which contains only the characters x and y, the task is to count all the sub-strings that start and end with… Read More »

Given a string S containing lowercase latin letters. A character c is called K-amazing if every substring of S with length atleast K contains this… Read More »

A string is called a N-copy string when it is formed by N copies of letter ‘G’. ie “GGGG” is a 4-copy string since it… Read More »

Given an array arr[] of strings of same length, the task is to count the number of columns to be deleted so that all the… Read More »

Given a string str, the task is to print the pattern given in the examples below: Examples: Input: str = “geeks” Output: geeks *kee* **e**… Read More »

Given a string str, the task is to check whether the count of vowels in the given string is prime or not. If its prime… Read More »

Given a string str, the task is to count all possible sub-strings of the given string that are prefix of the same string. Examples: Input:… Read More »

Given a string str representing an integer and an integer led which is the count of LEDs available. The task is to check if it… Read More »

Given a string consisting of only vowels, find the longest subsequence in the given string such that it consists of all five vowels and is… Read More »

Given a string s and two words w1 and w2 that are present in S. The task is to find the minimum distance between w1… Read More »

Given a sorted array of String and a String x, find index of x if it is present in the array. Examples: Input : arr[]… Read More »

Given a string str the task is to expand the string as follows: If the string is abcd, the resultant string will be d, cd,… Read More »

Given a string S. The task is to count and print the number of characters in the string whose ASCII values are prime. Examples: Input:… Read More »