Skip to content

Commit 53510bf

Browse files
author
ssjssh
committed
1, 双向链表中添加注释.
2, 修改目录结构
1 parent 75b6665 commit 53510bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ algorithm
9292

9393
未来计划
9494
=====================
95-
#在学习redis源码的过程中修改各个数据结构的实现,目的是使用更加精细的规则去提高数据结构的性能
96-
#添加更多注释并且格式化代码,注释中注重于设计的思考
97-
#添加算法导论中其他高级的数据结构
98-
#计划完成一些在线的题库
95+
* 在学习redis源码的过程中修改各个数据结构的实现,目的是使用更加精细的规则去提高数据结构的性能
96+
* 添加更多注释并且格式化代码,注释中注重于设计的思考
97+
* 添加算法导论中其他高级的数据结构
98+
* 计划完成一些在线的题库
9999

100100

101101

src/list/mutiarray_linkedlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, length):
1717
super(MultiArrayLinkedList, self).__init__()
1818
self.__empty = self.EmptyNode()
1919
self.__cap = length
20-
self.__lenght = 0
20+
self.__length = 0
2121
self.__key = [self.__empty for x in xrange(0, length + 1)]
2222
self.__prev = [-1 for x in xrange(0, length + 1)]
2323
self.__next = [x + 1 for x in xrange(0, length + 1)] # next数组在节点为空的时候存储的是下一个空节点的位置

0 commit comments

Comments
 (0)