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
static MyLinkedList<T> ReverseLinkedList<T>(MyLinkedList<T> linkedList) { if (linkedList.Next == null) return linkedList;
var newTail = linkedList.Next; var reversedList = ReverseLinkedList(linkedList.Next); newTail.Next = linkedList; linkedList.Next = null; return reversedList; }
There are no comments on this comment yet.
static MyLinkedList<T> ReverseLinkedList<T>(MyLinkedList<T> linkedList) { if (linkedList.Next == null) return linkedList;