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.
little bit confusing for beginner I have face the same issue but dont' worry guys take a time and understand the whole code you will know how to work. for me i do not understand what's happing in llist and why tail is create but after read line by line. I have understood the code and end of that. I have solve the problem.
this is my c++ solution :
SinglyLinkedListNode* insertNodeAtHead(SinglyLinkedListNode* llist, int data) {
Insert a node at the head of a linked list
You are viewing a single comment's thread. Return to all comments →
little bit confusing for beginner I have face the same issue but dont' worry guys take a time and understand the whole code you will know how to work. for me i do not understand what's happing in llist and why tail is create but after read line by line. I have understood the code and end of that. I have solve the problem.
this is my c++ solution :
SinglyLinkedListNode* insertNodeAtHead(SinglyLinkedListNode* llist, int data) {
}