mirror of
https://github.com/krahets/hello-algo.git
synced 2025-01-23 14:20:29 +08:00
a9d70e9e4b
* fix: linkedlist_stack.py 中的peek方法需要判空raise Error 栈空的时候不能再 peek() 。另外由于 pop() 复用了 peek() ,栈空时返回的 None 会传递到 pop() 中的 num ,导致后续的继续执行 self.peek.next 报错等后续问题 * Update linkedlist_stack.py * Update linkedlist_queue.py * Update linkedlist_deque.py --------- Co-authored-by: Yudong Jin <krahets@163.com> |
||
---|---|---|
.. | ||
chapter_array_and_linkedlist | ||
chapter_backtracking | ||
chapter_computational_complexity | ||
chapter_divide_and_conquer | ||
chapter_dynamic_programming | ||
chapter_graph | ||
chapter_greedy | ||
chapter_hashing | ||
chapter_heap | ||
chapter_searching | ||
chapter_sorting | ||
chapter_stack_and_queue | ||
chapter_tree | ||
modules | ||
.gitignore |