My issue
Please help out with solutions
My code
# Define the maximum size of the queue
MAX_SIZE = 101
a = [0] * MAX_SIZE # Array to store queue elements
front = 0 # Index of the front element
rear = -1 # Index of the rear element
current_size = 0 # Current size of the queue
# Function to check if the queue is empty
def isEmpty():
if current_size == 0:
return ____
else:
return ____
# Function to check if the queue is full
def isFull():
if current_size == MAX_SIZE:
return _____
else:
return ____
# Function to get the current size of the queue
def size():
return _____
Learning course: Data structures & Algorithms lab
Problem Link: isEmpty,isFull, functions of Queue in Data structures & Algorithms lab