You are viewing a single comment's thread. Return to all comments →
def deleteNode(llist, position): count = 1 curr = llist if position==0: return llist.next while count!=position: curr = curr.next count+=1 curr.next = curr.next.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 →