Skip to content

Tag Archives: anagram

Given a string S, the task is to find all the substrings in the string S which is an anagram of another different substring in… Read More
Given a string S of length N, the task is to count the number of anagrams of S whose first character is a consonant and… Read More
Given two strings str1 and str2 of the lengths of N and M respectively, the task is to find the length of the longest anagram… Read More
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 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