Amazon interview question

How would you reverse a doubly-linked list?

Interview Answers

Anonymous

7 Jan 2012

LOL delete it.. then get the one from your backup ;)

Anonymous

7 Jan 2012

since it is doubly linked... go through and swap the what pointers to next and last