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