Want a Free Job Posting?

Buy a job posting today and the second one is on us. For a limited time only. Act Now.

Interview Question


Find all anagrams of a word in a dictionary.


Interview Answer

1 Answer


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.