You are viewing a single comment's thread. Return to all comments →
def deleteNode(llist, position): if position==0: return llist.next if llist==None: return None else: temp =llist temp2=llist.next for i in range(position-1): temp=temp.next temp2=temp2.next temp.next=temp2.next return llist
Seems like cookies are disabled on this browser, please enable them to open this website
Delete a Node
You are viewing a single comment's thread. Return to all comments →