Reverse a linked list

  • + 1 comment

    C# won't compile because SinglyLinkedListNode.head and SinglyLinkedListNode.next cannot be null. You can't even just return the input. The class needs to define these as nullable!