Two words are anagrams if one of them has exactly same characters as that of the another word.
Example : Anagram & Nagaram are anagrams
Anagram
Nagaram
tried to implement the hashmap solution
public class Dictionary { public static void main(String[] args){ String[] Dictionary=new String[]{"dog","god","tool","loot","rose","sore"}; HashMap h=new HashMap(); QuickSort q=new QuickSort(); for(int i=0;i