We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Insert a node at the head of a linked list
Insert a node at the head of a linked list
Sort by
recency
|
970 Discussions
|
Please Login in order to post a comment
Here is my c++ solution you watch vide explanation here : https://youtu.be/COnfpdhOlN8
Simple Solution
C++
Java
def insertNodeAtHead(llist, data): newnode = SinglyLinkedListNode(data) newnode.next = llist return newnode
It looks like there is a problem with the c# solution. I am getting compilation error in the pre-writtern class
The given C# classes do not compile. This needs to be fixed.