Amazon Interview Question
Software Engineer / DevelopersOne Can only Generate permutations for words/sentences , but i dont think its possible to generate anagrams by writing a program for a given word/sentence ( unless & otherwise there is a huge database of meaningful words which you have to search ), so the question should be given two words , just check whether they are anagrams or not ..
Sort both words and check if they are same.
- CuriousCrab June 22, 2008