From 24c6e777c555a679823a9a850e94d2783106b255 Mon Sep 17 00:00:00 2001 From: Alexander Usoltsev Date: Thu, 23 Nov 2017 18:17:17 +0100 Subject: [PATCH] Update 03-delete-middle.py I think there is a typo in line 8: `node.next = node.next` -> `node.next = next.next` --- ch-02-linked-lists/03-delete-middle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch-02-linked-lists/03-delete-middle.py b/ch-02-linked-lists/03-delete-middle.py index f79c7e8..1ef5173 100644 --- a/ch-02-linked-lists/03-delete-middle.py +++ b/ch-02-linked-lists/03-delete-middle.py @@ -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):