krahets
|
5aacf2dfe0
|
Improve Python code for importing modules.
|
1 year ago |
krahets
|
2976d9ff56
|
Fix Python code.
|
1 year ago |
krahets
|
d190dbf3c1
|
Several enhancements and fixes
|
1 year ago |
malone6
|
a9d70e9e4b
|
fix: raise error in peek() function of linkedlist_stack.py, linkedlist_queue.py, linkedlist_deque.py (#754)
* 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>
|
1 year ago |
krahets
|
c310edb672
|
Polish the chapter of array and linkedlist
|
1 year ago |
krahets
|
dbe3b4d6ba
|
Fine tune.
|
1 year ago |
krahets
|
90af225dae
|
Remove `-> None` for Python functions
|
1 year ago |
krahets
|
e196962d0a
|
Simplify the declarations of the Python code.
|
2 years ago |
krahets
|
3590262c7e
|
Modify the exception handling in Java and Python.
|
2 years ago |
krahets
|
10e2180013
|
Unify the comment style of python codes
|
2 years ago |
Yudong Jin
|
5ddcb60825
|
Format python codes with black. (#453)
|
2 years ago |
Yudong Jin
|
1c8b7ef559
|
refactor: Replace 结点 with 节点 (#452)
* Replace 结点 with 节点
Update the footnotes in the figures
* Update mindmap
* Reduce the size of the mindmap.png
|
2 years ago |
Yudong Jin
|
8918ec9079
|
refactor: Follow the PEP 585 Typing standard (#439)
* Follow the PEP 585 Typing standard
* Update list.py
|
2 years ago |
Yudong Jin
|
8aebbaad21
|
refactor: Replace poll with pop in Queue and Deque (#415)
|
2 years ago |
Yudong Jin
|
9151eaf533
|
Add typing annotations to Python codes. (#411)
|
2 years ago |
krahets
|
bbef87ccfe
|
Update the applications of deque.
|
2 years ago |
krahets
|
7c501140f0
|
Update code style for Python
|
2 years ago |
Yudong Jin
|
0ed596e251
|
Add array_deque.py and linkedlist_deque.py (#399)
|
2 years ago |
方圆
|
f0d8d8b1b0
|
feat: add ArrayDeque (#348)
* 双向队列: java 代码
* 双向队列: markdown 内容
* Rewrite array_deque.java
Update array_queue.java, linkedlist_deque.java
* Add ArrayDeque figures and rewrite the contents
---------
Co-authored-by: krahets <krahets@163.com>
|
2 years ago |
Yudong Jin
|
5eae708035
|
Fix array queue.
|
2 years ago |
beintentional
|
3858048d0f
|
更新队列的链表实现中 self.__front 判空的方式 (#297)
* 更新队列的链表实现中 self.__front 判空的方式
self.__front 初始化为 None, 元素入队判断队列是否为空,延用头节点的初始化值 None 而不是 0
* Update linkedlist_queue.py
---------
Co-authored-by: Yudong Jin <krahets@163.com>
|
2 years ago |
Yudong Jin
|
919236f479
|
1. Add array representation of binary tree.
2. Update the LEGO example.
3. Update headers of the Python files.
|
2 years ago |
Yudong Jin
|
f39636cb63
|
Update the structure of the chapter
of binary tree.
|
2 years ago |
Yudong Jin
|
7283bbaf6f
|
Update the chapter of stack and queue.
|
2 years ago |
Yudong Jin
|
fa3eff81d1
|
Update array stack.
|
2 years ago |
Yudong Jin
|
d1efac36ca
|
Update the chapter of hashing.
|
2 years ago |
Yudong Jin
|
ebf9024136
|
Add Go codes to docs, including
the chapter of stack and queue, the chapter of tree.
|
2 years ago |
Yudong Jin
|
e20bc251f5
|
Add python code of chapter queue to docs.
|
2 years ago |
Yudong Jin
|
fcbe480b76
|
Merge pull request #55 from pengchzn/patch-2
Update array_stack.py
|
2 years ago |
Yudong Jin
|
6090079a2f
|
Merge pull request #53 from pengchzn/master
Add python code for queue
|
2 years ago |
pengchzn
|
59e46ada82
|
Add python code for queue
|
2 years ago |
彭琛
|
6879f7dc21
|
Update array_stack.py
An type error of ";"
|
2 years ago |
pengchzn
|
a2b7586c98
|
Add python code for queue
|
2 years ago |
Yudong Jin
|
acfdc713ba
|
update stack and queue.
|
2 years ago |
Yudong Jin
|
8669e06414
|
Update stack and queue.
|
2 years ago |
Yudong Jin
|
53cc651af2
|
Update python code of stack.
|
2 years ago |
Yudong Jin
|
b1b5094436
|
Update linkedlist_stack.py
|
2 years ago |
pengchzn
|
60cb2ffc97
|
栈的python代码
|
2 years ago |
pengchzn
|
f8d44be73d
|
栈的python代码
|
2 years ago |
pengchzn
|
b47f54886e
|
栈的python代码
|
2 years ago |
krahets
|
9a861140d8
|
Rearrange the chapters.
Start to translate codes from Java to Python.
|
2 years ago |