Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apna-college/Alpha
/ push
Method
push
14_Queues/Classroom.java:7–9 ·
view source on GitHub ↗
(int data)
Source
from the content-addressed store, hash-verified
5
Deque<Integer> deque =
new
LinkedList<>();
6
7
public
void
push(
int
data) {
8
deque.addLast(data);
9
}
10
11
public
int
pop() {
12
return
deque.removeLast();
Callers
1
reverse
Method · 0.95
Calls
1
addLast
Method · 0.45
Tested by
no test coverage detected