A word, phrase, or name formed by rearranging the letters of another, such as cinema, formed from iceman.
Questions tagged [anagram]
531 questions
3
votes
7 answers
Find group of strings that are anagrams
This question refers to this problem on lintcode. I have a working solution, but it takes too long for the huge testcase. I am wondering how can it be improved? Maybe I can decrease the number of comparisons I make in the outer loop.
class…

Wajahat
- 1,593
- 3
- 20
- 47
3
votes
3 answers
C# Anagram Checker With LinkedList
I'm trying to check if two words are anagram and trying to do this with LinkedList.To do that,first,I created a class named LinkedList:
class LinkedList
{
private Node head;
private int count;
public LinkedList()
{
…

Fethi Tekyaygil
- 355
- 2
- 15
3
votes
3 answers
Check to see if two strings are anagrams of each other in JavaScript. What logic is used here?
Can someone help explain the logic used in the JavaScript code here?
The code below checks to see if two strings are anagrams of each other, but I don't understand the method being used to check the string.
Thanks.