Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/careercup/ctci
/ min
Method
min
java/Chapter 3/Question3_2/StackWithMin.java:11–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
}
10
11
public
int
min() {
12
if
(this.isEmpty()) {
13
return
Integer.MAX_VALUE;
14
}
else
{
15
return
peek().min;
16
}
17
}
18
}
Callers
2
push
Method · 0.95
main
Method · 0.95
Calls
2
isEmpty
Method · 0.45
peek
Method · 0.45
Tested by
no test coverage detected