News for hackers. Stuff that matters.
Re:Dear HN "Who's Hiring" responders by thisone on Tuesday April 02, 2013 @04:55PM (#5482017)
I've always thought of reversing a linked list in a visual way.

In my mind, a link list is a bunch of nodes with arrows pointing right. To reverse the list, all I need to do is point the arrows to the left.

6(ish) lines of code later, and I've got a recursive reverse method.

There are no comments on this comment yet.