You are viewing a single comment's thread. Return to all comments →
c#
if (head == null) { head = new Node(data); } else { Node currentNode = head; while (currentNode.next != null) { currentNode = currentNode.next; } currentNode.next = new Node(data); } return head;
Seems like cookies are disabled on this browser, please enable them to open this website
Day 15: Linked List
You are viewing a single comment's thread. Return to all comments →
c#