Skip to content

Commit

Permalink
Merge pull request #1 from marsbroshok/patch-1
Browse files Browse the repository at this point in the history
Update 03-delete-middle.py
  • Loading branch information
w-hat authored Jan 28, 2018
2 parents 0617ffc + 24c6e77 commit 5e78d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch-02-linked-lists/03-delete-middle.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def delete_middle(node):
next = node.next
node.data = next.data
node.next = node.next
node.next = next.next

class Node():
def __init__(self, data, next=None):
Expand Down

0 comments on commit 5e78d82

Please sign in to comment.