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

Method insertLast

DesignCircularDeque.java:25–33  ·  view source on GitHub ↗
(int value)

Source from the content-addressed store, hash-verified

23 }
24
25 public boolean insertLast(int value) {
26 if(isFull()){
27 return false;
28 }
29 rear = (rear + 1) % capacity;
30 deque[rear] = value;
31 size++;
32 return true;
33 }
34
35 public boolean deleteFront() {
36 if(isEmpty()){

Callers

nothing calls this directly

Calls 1

isFullMethod · 0.95

Tested by

no test coverage detected