## 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 »

- Check whether two strings contain same characters in same order
- Implement a Dictionary using Trie
- Minimum rotations required to get the same String | Set-2
- Sort an array of strings based on the frequency of good words in them
- Count number of distinct substrings of a given length
- Find minimum length sub-array which has given sub-sequence in it
- Longest substring of only 4's from the first N characters of the infinite string
- Find if a binary matrix exists with given row and column sums
- Longest prefix in a string with highest frequency
- Find the element in the matrix generated by given rules
- Minimum given operations required to convert a given binary string to all 1's

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 an array A of N lowercase letter strings of the same length. The task is to find the count of columns that are not… Read More »

Given an array A[] of integers. The task is to count the total number of strictly decreasing subarrays( with size > 1 ). Examples: Input… Read More »

Given a binary array arr[] of zero’s and one’s only. The task is to find the minimum number of one’s to be changed to zero… Read More »

Given two string ‘S1’ and ‘S2’, the task is to return the most frequent (which is used the maximum number of times) word from ‘S1’… Read More »

You are given two strings A and B. Strings also contains special character * . you can replace * with any alphabetic character. Finally, you… Read More »

Given two sentences as strings A and B. The task is to return a list of all uncommon words. A word is uncommon if it… Read More »

Given a name and a typed-name of a person. Sometimes, when typing a vowel [aeiou], the key might get long pressed, and the character will… Read More »

Given a number n as the size of the matrix, the task is to print a spiral pattern in 2D array of size n. Examples:… Read More »

Given two strings S1 and S2 ( size of S1 <= Size of S2 ). The task is to find the minimum number of characters… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 8, 54, 384… Examples:… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 0, 2, 4, 8, 12,… Read More »

Suppose we are given a string s1, we need to the find total number of substring(including multiple occurrences of the same substring) of s1 which… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 4, 15, 72, 420…… Read More »

Given a word and a text, return the count of the occurences of anagrams of the word in the text(For eg: anagrams of word for… Read More »