initial commit
This commit is contained in:
parent
4f147b1f47
commit
f08b18dc34
|
|
@ -39,7 +39,7 @@ def ll_delete(head, name):
|
||||||
current = head
|
current = head
|
||||||
while current['next'] is not None:
|
while current['next'] is not None:
|
||||||
if current['next']['name'] == name:
|
if current['next']['name'] == name:
|
||||||
current['next']==current['next']['next']
|
current['next']=current['next']['next']
|
||||||
return head
|
return head
|
||||||
current=current['next']
|
current=current['next']
|
||||||
return head
|
return head
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user