You are viewing a single comment's thread. Return to all comments →
Python
def insert(self,head,data): nd = Node(data) nth = head if head is None: head = nd else: while nth.next is not None: nth = nth.next nth.next = nd 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 →
Python