mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
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:
parent
e8aa81297a
commit
ec7bc7c7cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user