MCPcopy
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

pushMethod · 0.95
mainMethod · 0.95

Calls 2

isEmptyMethod · 0.45
peekMethod · 0.45

Tested by

no test coverage detected