Skip to content

Tag Archives: anagram

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. Note:-… Read More
Question 1 Given a list of strings, where each string is composed of different combinations of (, ), {, }, [, ]. Verify the validity… Read More
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
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 an array of words, print all anagrams together.  For example,  Input: array = {“cat”, “dog”, “tac”, “god”, “act”} output: cat tac act, dog god… Read More
Some time back I went through an interview for Amazon.com for SDE-1 role, and here is my experience to help other aspirants : Written –… Read More
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
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.Two… Read More
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: 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
Given an array of strings, find all anagram pairs in the given array. Example: Input: arr[] = {"geeksquiz", "geeksforgeeks", "abcd", "forgeeksgeeks", "zuiqkeegs"}; Output: (geeksforgeeks, forgeeksgeeks),… Read More
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 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
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
  Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string… Read More