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

Method deleteFront

DesignCircularDeque.java:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 public boolean deleteFront() {
36 if(isEmpty()){
37 return false;
38 }
39 front = (front + 1 ) % capacity;
40 size--;
41 return true;
42 }
43
44 public boolean deleteLast() {
45 if(isEmpty()){

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected