Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Dear HN "Who's Hiring" responders. Parent comment
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.
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.