## Count of cyclic permutations having XOR with other binary string as 0

Given two binary strings and . Let be set of all the cyclic permutations of string . The task is to find how many strings… Read More »

- Find the first maximum length even word from a string
- Repeated Character Whose First Appearance is Leftmost
- Count common characters in two strings
- Find the longest string that can be made up of other strings from the array
- Count substrings that contain all vowels | SET 2
- Convert character array to string in C++
- Check whether two strings contain same characters in same order
- Check for balanced parentheses in an expression | O(1) space | O(N^2) time complexity
- Count of integers of length N and value less than K such that they contain digits only from the given set
- Program to find the kth character after decrypting a string
- Generate all permutations of a string that follow given constraints
- Minimum number of times A has to be repeated such that B is a substring of it
- Minimum length substring with exactly K distinct characters
- Rearrange characters in a string such that no two adjacent are same using hashing
- Maximize the happiness of the groups on the Trip
- Check if two strings are same ignoring their cases
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Find the number of binary strings of length N with at least 3 consecutive 1s
- Print the longest prefix of the given string which is also the suffix of the same string
- Count pairs of non-overlapping palindromic sub-strings of the given string
- Program to generate all possible valid IP addresses from given string | Set 2
- Minimum rotations required to get the same String | Set-2
- Minimum number of adjacent swaps to convert a string into its given anagram
- Minimum steps to delete a string by deleting substring comprising of same characters
- Find k-th character of decrypted string | Set - 2
- Append a digit in the end to make the number equal to the length of the remaining string
- Check if a string can be obtained by rotating another string d places
- Count of substrings which contains a given character K times
- Optimally accommodate 0s and 1s from a Binary String into K buckets
- Minimum number of bracket reversals needed to make an expression balanced | Set - 2

Given two binary strings and . Let be set of all the cyclic permutations of string . The task is to find how many strings… Read More »

Given a string , the task is to find the maximum length of the sub-string of that can be arranged into a Palindrome (i.e at… Read More »

Given a string which contains only (increase) and (decrease). The task is to return any permutation of integers [0, 1, …, N] where N ≤… Read More »

Given two binary numbers strings and of length . Find the number of ways of swapping two bits in s1(only s1 not s2) so that… Read More »

Given a string containing only dots and asterisk. A dot represents free spaces and represents lamps. A lamp at position can spread its light at… Read More »

Given a string of lowercase English alphabets. The task is to check if the count of distinct characters in the string is prime or not.… Read More »

Given a string . Find a string , where B is a palindrome and A is a subsequence of B. A subsequence of a string… Read More »

Given a string , the task is to check if the frequencies of all the characters of the string are prime or not. If all… Read More »

Given a size as n, The task is to generate a random alphanumeric String of this size. Below are various ways to generate random alphanumeric… Read More »

Given an even length string S consisting of lower-case English alphabets only, we have two players playing the game. The rules are as follows: the… Read More »

Given a string containing lowercase English alphabets. The task is to find the minimum number of characters needed to be removed so that the remaining… Read More »

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 an integer n and an array of characters S, the task is to generate Lyndon words of length n having characters from S. A… Read More »

Given a string str, the task is to count the number of alphabets having ascii values not in the range [l, r]. Examples: Input: str… Read More »

Given a sentence, the task is to find the average of ASCII values of each word in the sentence and print it with the word.… Read More »