hello-algo/docs/chapter_stack_and_queue
beintentional 3858048d0f
更新队列的链表实现中 self.__front 判空的方式 (#297)
* 更新队列的链表实现中 self.__front 判空的方式

self.__front 初始化为 None, 元素入队判断队列是否为空,延用头节点的初始化值 None 而不是 0

* Update linkedlist_queue.py

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-01-28 00:30:37 +08:00
..
deque.assets Update figures. 2022-12-10 02:29:44 +08:00
queue.assets Update stack, queue, space_time_tradeoff 2023-01-19 02:04:21 +08:00
stack.assets Update stack, queue, space_time_tradeoff 2023-01-19 02:04:21 +08:00
deque.md docs: add comments of the complexity to queue and deque 2023-01-14 10:17:22 +08:00
queue.md 更新队列的链表实现中 self.__front 判空的方式 (#297) 2023-01-28 00:30:37 +08:00
stack.md Update stack, queue, space_time_tradeoff 2023-01-19 02:04:21 +08:00
summary.md Update stack, queue, space_time_tradeoff 2023-01-19 02:04:21 +08:00