Skip to content

Commit 57ac04d

Browse files
committed
Deployed 2634b20 with MkDocs version: 0.17.4
1 parent 54b7564 commit 57ac04d

20 files changed

+4
-81
lines changed

.DS_Store

-6 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-6.59 KB
Binary file not shown.
3.8 KB
Binary file not shown.
-9.67 KB
Binary file not shown.

03_链表/double_link_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def tailnode(self):
2929
return self.root.prev
3030

3131
def append(self, value): # O(1), 你发现一般不用 for 循环的就是 O(1),有限个步骤
32-
if self.maxsize is not None and len(self) > self.maxsize:
32+
if self.maxsize is not None and len(self) >= self.maxsize:
3333
raise Exception('LinkedList is Full')
3434
node = Node(value=value)
3535
tailnode = self.tailnode() or self.root
@@ -41,7 +41,7 @@ def append(self, value): # O(1), 你发现一般不用 for 循环的就是 O(
4141
self.length += 1
4242

4343
def appendleft(self, value):
44-
if self.maxsize is not None and len(self) > self.maxsize:
44+
if self.maxsize is not None and len(self) >= self.maxsize:
4545
raise Exception('LinkedList is Full')
4646
node = Node(value=value)
4747
if self.root.next is self.root: # empty

03_链表/wnntest.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.
-5.6 KB
Binary file not shown.
-3.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)