From bbc4677f4ce0f570e1edb1c43ba151cf6368b83e Mon Sep 17 00:00:00 2001 From: Yanghyeondong <37038105+Yanghyeondong@users.noreply.github.com> Date: Wed, 23 Nov 2022 16:46:57 +0900 Subject: [PATCH] Fix 26-1.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [이슈 링크](https://github.com/onlybooks/algorithm-interview/issues/160) 간단하게 `ListNode` 주석 및 변수만 고쳐봤습니다. 리트코드 통과도 확인했습니다. 좋은 책 감사합니다! --- 3-linear-data-structures/ch10/26-1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/3-linear-data-structures/ch10/26-1.py b/3-linear-data-structures/ch10/26-1.py index 209cf71..9896d9c 100644 --- a/3-linear-data-structures/ch10/26-1.py +++ b/3-linear-data-structures/ch10/26-1.py @@ -1,9 +1,9 @@ -# Definition for singly-linked list. +# Definition for doubly-linked-list. class ListNode: def __init__(self, x): self.val = x - self.next = None - + self.right = None + self.left = None class MyCircularDeque: def __init__(self, k: int):