Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Misc
7.7K+ articles
Strings
2.1K+ articles
Amazon
1.9K+ articles
Hash
831+ articles
frequency-counting
745+ articles
Goldman Sachs
249+ articles
Nagarro
69+ articles
anagram
55 posts
Recent Articles
Popular Articles
Minimizing Steps to Form Anagrams from Given Strings
Last Updated: 28 December 2023
Given two strings s1 and s2. You have the flexibility to add any letter to either the string s1 or s2 in just one action. Find out the least number of steps needed to tran...
read more
Strings
DSA
anagram
Anagram Substring Search (Or Search for all permutations) | Set 2
Last Updated: 23 July 2025
Given a text txt and a pattern pat of size n and m respectively, the task is to find all occurrences of pat and its permutations (or anagrams) in txt. You may assume n m....
read more
Strings
Hash
Geeks Premier League
Geeks-Premier-League-2022
DSA
anagram
sliding-window
Check whether two Linked Lists are anagrams or not
Last Updated: 10 April 2023
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 if they are, otherwise print No.Examples:Input:Lin...
read more
Linked List
Mathematical
Algo Geek
Algo-Geek 2021
DSA
anagram
C++ Program To Check Whether Two Strings Are Anagram Of Each Other
Last Updated: 15 January 2026
Two strings are called anagrams if they contain the same characters in the same frequency, but their order is different.Example:Input: Str1 = "abcd"Str2 ="dabc"Output:Stri...
read more
Strings
C++ Programs
DSA
Amazon
Goldman Sachs
Nagarro
anagram
Python Program To Check Whether Two Strings Are Anagram Of Each Other
Last Updated: 23 July 2025
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 contains the same characters, only the ...
read more
Strings
Python Programs
DSA
Amazon
Goldman Sachs
Nagarro
anagram
Javascript Program To Check Whether Two Strings Are Anagram Of Each Other
Last Updated: 23 July 2025
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 contains the same characters, only the ...
read more
JavaScript
Amazon
Goldman Sachs
Nagarro
anagram
String Anagram in C
Last Updated: 23 July 2025
An anagram of a string is another string can be formed by the rearrangement of the same set of characters. In this article, we will learn how to check whether two strings ...
read more
Strings
C Programs
DSA
Amazon
Goldman Sachs
Nagarro
anagram
Java Program To Check Whether Two Strings Are Anagram
Last Updated: 23 July 2025
Write a function to check whether two given strings are anagrams of each other or not. An anagram of a string is another string that contains the same characters, only the...
read more
Strings
Java Programs
DSA
Amazon
Goldman Sachs
Nagarro
anagram
Find an anagram of given String having different characters at corresponding indices
Last Updated: 23 July 2025
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 the same indices are different from the orig...
read more
Strings
Greedy
DSA
anagram
two-pointer-algorithm
Check if any anagram of string S is lexicographically smaller than that of string T
Last Updated: 14 December 2021
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 T.Example:Input: S = "xy", T = "axy"Outp...
read more
Strings
Greedy
DSA
anagram
Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of Character | Set 2
Last Updated: 23 July 2025
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 the minimum number of steps to m...
read more
Strings
Hash
DSA
anagram
Find all substrings that are anagrams of another substring of the string S
Last Updated: 23 July 2025
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 the string S. The different substrings mean ...
read more
Misc
Strings
Sorting
Hash
DSA
anagram
substring
Count anagrams having first character as a consonant and no pair of consonants or vowels placed adjacently
Last Updated: 23 July 2025
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 no pair of consonants or vowels are adjacent to eac...
read more
Strings
Mathematical
Combinatorial
DSA
combinatorics
anagram
vowel-consonant
Check if a string contains an anagram of another string as its substring
Last Updated: 23 July 2025
Given two strings S1 and S2, the task is to check if S2 contains an anagram of S1 as its substring.Examples:Input: S1 = "ab", S2 = "bbpobac"Output: YesExplanation: String ...
read more
Strings
Searching
Hash
Technical Scripter
Technical Scripter 2020
DSA
anagram
sliding-window
frequency-counting
substring
Length of longest prefix anagram which are common in given two strings
Last Updated: 23 July 2025
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 string that is prefix substring of both strin...
read more
Misc
Strings
Hash
DSA
anagram
prefix
frequency-counting
substring
1
2
3
4