## Largest substring of str2 which is a prefix of str1

Given two string str1 and str2, the task is to find the longest prefix of str1 which is present as a substring of the string… 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
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Program to generate all possible valid IP addresses from given string | Set 2
- Maximize the happiness of the groups on the Trip
- 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
- Reverse individual words with O(1) extra space
- Minimum number of sub-strings of a string such that all are power of 5
- Persistent Trie | Set 1 (Introduction)

Given two string str1 and str2, the task is to find the longest prefix of str1 which is present as a substring of the string… Read More »

Given a string S. The task is to check whether it is possible to rearrange the string such that every substring of odd length is… Read More »

Given an array arr[] of strings. The task is to sort the array in lexicographical order using Heap Sort. Examples: Input: arr[] = { “banana”,… Read More »

Given a string str consisting of lowercase English alphabets, the task is to find the count of substrings that start with “geeks” and end with… Read More »

Given a string, the task is to encrypt this string using ! and @ symbols, alternatively. While encrypting the message the encrypted format must repeat… Read More »

Given a string str, the task is to perform the following type of queries on the given string: (1, K): Left rotate the string by… Read More »

Given a string of balanced expression, find if it contains a redundant parenthesis or not. A set of parenthesis are redundant if the same sub-expression… Read More »

Given a string str consisting of a sentence, the task is to reverse every word of the sentence except the first and last character of… Read More »

Given a string “str”, the task is to duplicate vowels in this string. Examples: Input: str = “geeks” Output: geeeeks Input: str = “java” Output:… Read More »

Given a string str and a character ch, this article tells about how to append this character ch to this string str at the end.… Read More »

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 unbalanced bracket sequence of ‘(‘ and ‘)’, convert it into a balanced sequence by adding the minimum number of ‘(‘ at the beginning… Read More »

Given a binary string str, the task is to find the minimum number of operations required to make all the characters of the string same… Read More »

Given a string S of length N, and M queries of the following type: Type 1: 1 L x, Indicates update Lth index of string… Read More »

Given a string str containing only lowercase characters. The task is to print the characters along with their frequencies in the order of their occurrence… Read More »