Tabs --> spaces in quine_mc_cluskey.py (#1426)

* Tabs --> spaces in quine_mc_cluskey.py

* fixup! Format Python code with psf/black push
This commit is contained in:
Christian Clauss 2019-11-21 15:21:40 +01:00 committed by John Law
parent e8aa81297a
commit ec7bc7c7cd
3 changed files with 31 additions and 30 deletions

View File

@ -1,5 +1,6 @@
# Implementation of Circular Queue (using Python lists)
class CircularQueue:
"""Circular FIFO queue with a fixed capacity"""
@ -59,7 +60,7 @@ class CircularQueue:
raise Exception("QUEUE IS FULL")
self.array[self.rear] = data
self.rear = (self.rear+1)%self.n
self.rear = (self.rear + 1) % self.n
self.size += 1
return self
@ -88,6 +89,6 @@ class CircularQueue:
temp = self.array[self.front]
self.array[self.front] = None
self.front = (self.front + 1)%self.n
self.front = (self.front + 1) % self.n
self.size -= 1
return temp