mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
Bug fixes and improvements (#1627)
* Update Copyright 2024 to 2025. * Fix the flex of .profile-cell for mobile devices. * Update performance_evaluation.md * 抛出 -> 给出 * Sync zh and zh-hant version. * Improve the landing page of the English version. * Bug fixes * Fix readme-typing-svg * Update readme-typing-svg * Bug fixes * sync zh and zh-hant versions.
This commit is contained in:
@ -69,7 +69,7 @@ class LinkedListDeque:
|
||||
val: int = self._front.val # Temporarily store the head node value
|
||||
# Remove head node
|
||||
fnext: ListNode | None = self._front.next
|
||||
if fnext != None:
|
||||
if fnext is not None:
|
||||
fnext.prev = None
|
||||
self._front.next = None
|
||||
self._front = fnext # Update head node
|
||||
@ -78,7 +78,7 @@ class LinkedListDeque:
|
||||
val: int = self._rear.val # Temporarily store the tail node value
|
||||
# Remove tail node
|
||||
rprev: ListNode | None = self._rear.prev
|
||||
if rprev != None:
|
||||
if rprev is not None:
|
||||
rprev.next = None
|
||||
self._rear.prev = None
|
||||
self._rear = rprev # Update tail node
|
||||
|
||||
Reference in New Issue
Block a user