Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/careercup/ctci
/ min
Method
min
java/Chapter 3/Question3_2/StackWithMin2.java:27–33 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
}
26
27
public
int
min() {
28
if
(s2.isEmpty()) {
29
return
Integer.MAX_VALUE;
30
}
else
{
31
return
s2.peek();
32
}
33
}
34
}
35
36
Callers
3
main
Method · 0.95
push
Method · 0.95
pop
Method · 0.95
Calls
2
isEmpty
Method · 0.45
peek
Method · 0.45
Tested by
no test coverage detected