MCPcopy
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

mainMethod · 0.95
pushMethod · 0.95
popMethod · 0.95

Calls 2

isEmptyMethod · 0.45
peekMethod · 0.45

Tested by

no test coverage detected