## Check if a string can be obtained by rotating another string d places

Given two strings str1 and str2 and an integer d, the task is to check whether str2 can be obtained by rotating str1 by d… Read More »

- Methods to concatenate string in C/C++ with Examples
- Java Program to print distinct permutations of a string
- Find the first maximum length even word from a string
- Count common characters in two strings
- Repeated Character Whose First Appearance is Leftmost
- Operations required to make the string empty
- Java ArrayList to print all possible words from phone digits
- Check whether two strings contain same characters in same order
- Program to find the kth character after decrypting a string
- Check for balanced parentheses in an expression | O(1) space | O(N^2) time complexity
- Count of words that are present in all the given sentences
- Generate all permutations of a string that follow given constraints
- Minimum length substring with exactly K distinct characters
- Find the longest string that can be made up of other strings from the array
- Maximize the happiness of the groups on the Trip
- Count pairs of non-overlapping palindromic sub-strings of the given string
- Count occurrences of a string that can be constructed from another given string
- Find the minimum number of preprocess moves required to make two strings equal
- Find the number of binary strings of length N with at least 3 consecutive 1s
- Check if two strings are same ignoring their cases
- Minimum steps to delete a string by deleting substring comprising of same characters
- Maximize the value of A by replacing some of its digits with digits of B
- Convert character array to string in C++
- Print the longest prefix of the given string which is also the suffix of the same string
- Minimum rotations required to get the same String | Set-2
- Find k-th character of decrypted string | Set - 2
- Rearrange characters in a string such that no two adjacent are same using hashing
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Count substrings that contain all vowels | SET 2
- Count of integers of length N and value less than K such that they contain digits only from the given set

Given two strings str1 and str2 and an integer d, the task is to check whether str2 can be obtained by rotating str1 by d… Read More »

Given a string containing only digits, restore it by returning all possible valid IP address combinations. A valid IP address must be in the form… 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 two arrays A[] and B[] which consists of N and M strings respectively. A string S1 is said to be smaller than string S2… Read More »

Given an array of strings arr[], the task is to find the largest string in the array which is made up of the other strings… Read More »

Given a string of lowercase English alphabets and an integer 0 < K <= 26. The task is to divide the string into two parts… 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 set of digits A[] in sorted order and two integers N and K, the task is to find how many numbers of length… Read More »

Given an array arr[] of N strings consisting of lowercase characters, the task is to count the pairs in the array which satisfy the given… Read More »

Given a binary string S, consisting of 0’s and 1’s. You have to accommodate the 0’s and 1’s into the K buckets in such a… Read More »

Given a string Str, the task is to remove first adjacent pairs of similar characters until we can. Note: Remove adjacent characters to get a… Read More »

Given a string str and an array of strings arr[], the task is to check if the given string can be formed by any of… Read More »

Given a string str of size N. The task is to find out whether it is possible to rearrange characters in string str so that… Read More »

Given two strings s1 and s2, the task is to find the minimum number of steps required to convert s1 into s2. The only operation… Read More »