# Tag Archives: anagram

## Using Counter() in Python to find minimum character removal to make two strings anagramNovember 10, 2017

Given two strings in lowercase, the task is to make them Anagram. The only allowed operation is to remove a character from any string. Find… Read More »

## Print anagrams together in Python using List and DictionaryNovember 7, 2017

Given an array of words, print all anagrams together ? Examples: Input : arr = [‘cat’, ‘dog’, ‘tac’, ‘god’, ‘act’] Output : ‘cat tac act… Read More »

## Anagram checking in Python using collections.Counter()October 31, 2017

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 »

## Check if any anagram of a string is palindrome or notSeptember 1, 2017

We have given a anagram string and we have to check whether it can be made palindrome o not. Examples: Input : geeksforgeeks Output :… Read More »

## Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of CharacterAugust 28, 2017

Given two strings s1 and s2, we need to find the minimum number of manipulations required to make two strings anagram without deleting any character.… Read More »

## Check if binary representation of a given number and its complement are anagramJuly 31, 2017

Given a positive number you need to check whether it’s complement and the number are anagrams or not. Examples: Input : a = 4294967295 Output… Read More »

## Check if all levels of two trees are anagrams or notJuly 24, 2017

Given two binary trees, we have to check if each of their levels are anagrams of each other or not. Example: Tree 1: Level 0… Read More »

## Given a sequence of words, print all anagrams together using STLJuly 12, 2017

Given an array of words, print all anagrams together. For example, if the given array is {“cat”, “dog”, “tac”, “god”, “act”}, then output may be… Read More »

## Check if binary representations of two numbers are anagramJuly 7, 2017

Given two numbers you are required to check whether they are anagrams of each other or not in binary representation. Examples: Input : a =… Read More »

## Check if two strings are k-anagrams or notJanuary 14, 2017

Given two strings of lowercase alphabets and a value k, the task is to find if two strings are K-anagrams of each other or not.… Read More »

## Remove minimum number of characters so that two strings become anagramNovember 17, 2016

Given two strings in lowercase, the task is to make them anagram. The only allowed operation is to remove a character from any string. Find… Read More »

## Project Idea | (A Game of Anagrams )January 6, 2016

Project idea: The aim of this project is to create a game in python in which the user is presented with an anagram of a… Read More »

## Print all pairs of anagrams in a given array of stringsAugust 1, 2014

Given an array of strings, find all anagram pairs in the given array.

## Anagram Substring Search (Or Search for all permutations)July 19, 2014

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 a sequence of words, print all anagrams together | Set 2October 25, 2012

Given an array of words, print all anagrams together. For example, if the given array is {“cat”, “dog”, “tac”, “god”, “act”}, then output may be… Read More »