Skip to content

Tag Archives: anagram

Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] and its permutations (or… Read More
Given two strings in the form of linked lists, the task is to check if one string is the anagram of the other. Print Yes… Read More
Given two strings S and T, the task is to check if any anagram of string S is lexicographically smaller than any anagram of string… Read More
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
Given two equal-size strings s[] and t[] of size N. In one step, choose any character of t[] and replace it with another character. Return… Read More
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
Given a string S consisting of N characters, the task is to find the anagram of the given string S such that the characters at… Read More
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

Start Your Coding Journey Now!