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

Method getRear

DesignCircularDeque.java:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 public int getRear() {
61 if(isEmpty()){
62 return -1;
63 }
64 return deque[rear];
65 }
66
67 public boolean isEmpty() {
68 return (size==0);

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected