You are viewing a single comment's thread. Return to all comments →
Python Solution:
def deleteNode(llist, position):
cur = llist if position == 0: return llist.next else: for i in range(position): prev = cur cur = cur.next prev.next = cur.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 →
Python Solution:
def deleteNode(llist, position):