Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/careercup/ctci
/ pop
Method
pop
java/Chapter 3/Question3_2/StackWithMin2.java:19–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
}
18
19
public
Integer pop() {
20
int
value = super.pop();
21
if
(value == min()) {
22
s2.pop();
23
}
24
return
value;
25
}
26
27
public
int
min() {
28
if
(s2.isEmpty()) {
Callers
1
main
Method · 0.95
Calls
1
min
Method · 0.95
Tested by
no test coverage detected