Question: Need help the first picture is the code I have so far the second are the requirements. Its a deque array in python class dequeArray:
class dequeArray: DEFAULT-CAPACITY 10 #moderate capacity for all new queues def init (self): self.capacity-5 capacity self.capacity self.data self, make array(self. capacity) self. size self. front- def len (self): return self. size def _getiten-(self, k); #Return element at index k if not k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
