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

Method getFront

DesignCircularDeque.java:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 public int getFront() {
54 if(isEmpty()){
55 return -1;
56 }
57 return deque[front];
58 }
59
60 public int getRear() {
61 if(isEmpty()){

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected