Tag Archives: anagram

Given a string str of length N and an integer K, the task is to check if a string has two non-overlapping substrings of length… Read More
Given two strings S1 of size N and S2 of size M, the task is to find the lexicographically smallest and the largest anagrams of… Read More
Given a string S of length N containing only lowercase alphabets, the task is to print the count of substrings of the given string whose… Read More
Given an integer K such that there is a set of all possible perfect squares, each of length K. From this set of perfect squares,… Read More
Given a string S, the task is to check if S contains a pair of substrings of length K which are anagrams of each other… Read More
Given two arrays A[] and B[], the task is to check if array B can be made equal to A by reversing the subarrays of… Read More
Given two arrays arr1[] and arr2[] consisting of strings, the task is to print the count of anagrams of every string in arr2[] that are… Read More
Given an array arr of strings, the task is to remove the strings that are an anagram of an earlier string, then print the remaining… Read More
Given an array s[] of N strings. The task is to find the number of pairs of indices (i, j) such that s[i] is an… Read More
Write a function to check whether two given strings are an Anagram of each other or not. An anagram of a string is another string… 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
Write a function to check whether two given strings are an Anagram of each other or not. An anagram of a string is another string… Read More
Given two strings S1 and S2, the task is to count the number of sub-strings of S1 that are anagrams of any sub-string of S2.… Read More
Given a word and a text, return the count of the occurrences of anagrams of the word in the text(For eg: anagrams of word for… Read More
Given N strings. Find the longest possible subsequence from each of these N strings such that they are anagram to each other. The task is… Read More