MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / MyCircularDeque

Method MyCircularDeque

DesignCircularDeque.java:7–13  ·  view source on GitHub ↗
(int k)

Source from the content-addressed store, hash-verified

5 int capacity;
6 int deque[];
7 public MyCircularDeque(int k) {
8 deque = new int[k];
9 front = 0;
10 rear = k-1;
11 size=0;
12 capacity = k;
13 }
14
15 public boolean insertFront(int value) {
16 if(isFull()){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected