Interview Question

Interview

Find all anagrams of a word in a dictionary.

Answer

Interview Answer

1 Answer

1

In Python style pseudocode: reverse ( head ): prev = None node = head while (node != None ): next = node.next node.next = prev node.prev = next prev = node node = next return prev

Python reverse on Feb 1, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.