mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-06-06 22:28:49 -04:00
fix few details, stacks
This commit is contained in:
parent
578a4f28da
commit
415e9c02e2
18 changed files with 301 additions and 748 deletions
|
@ -10,7 +10,7 @@ class Queue(object):
|
|||
self.items = []
|
||||
|
||||
def isEmpty(self):
|
||||
return bool(self.items)
|
||||
return not bool(self.items)
|
||||
|
||||
def enqueue(self, item):
|
||||
self.items.insert(0, item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue