Insert a node at the head of a linked list

  • + 0 comments

    Just a warning to anyone writing this in C# c sharp: there is an error in the main function that makes solving this problem using C# impossible.

    PrintSinglyLinkedList(llist->head, "\n", textWriter);

    should be

    PrintSinglyLinkedList(llist.head, "\n", textWriter);