Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiwarishashwat/InterviewCodes
/ deleteLast
Method
deleteLast
DesignCircularDeque.java:44–51 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
}
43
44
public
boolean deleteLast() {
45
if
(isEmpty()){
46
return
false;
47
}
48
rear = (rear - 1 + capacity) % capacity;
49
size--;
50
return
true;
51
}
52
53
public
int
getFront() {
54
if
(isEmpty()){
Callers
nothing calls this directly
Calls
1
isEmpty
Method · 0.95
Tested by
no test coverage detected