You are viewing a single comment's thread. Return to all 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);
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Insert a node at the head of a linked list
You are viewing a single comment's thread. Return to all 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);