fix few details, stacks

This commit is contained in:
Mari Wahl 2014-08-27 16:11:26 -04:00
parent 578a4f28da
commit 415e9c02e2
18 changed files with 301 additions and 748 deletions

View file

@ -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)