public static void main(String args[]){
        Set<String> dictionary = new HashSet<String>();
        dictionary.add("cat");
        dictionary.add("pat");
        dictionary.add("pit");
        dictionary.add("pid");
        dictionary.add("did");
        ConvertOneWordToAnother cow = new ConvertOneWordToAnother();
        cow.convert("cat", "did", dictionary);
    }
150s qs 18.10
Given two words of equal length in dictionary convert one word to another one letter at a time
in such a way that all intermediate words are int the dictionary
src/com/interview/graph/ConvertOneWordToAnother.java