MCPcopy Index your code
hub / github.com/careercup/ctci / getLastStack

Method getLastStack

java/Chapter 3/Question3_3/SetOfStacks.java:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 }
12
13 public Stack getLastStack() {
14 if (stacks.size() == 0) {
15 return null;
16 }
17 return stacks.get(stacks.size() - 1);
18 }
19
20 public void push(int v) {
21 Stack last = getLastStack();

Callers 3

pushMethod · 0.95
popMethod · 0.95
isEmptyMethod · 0.95

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected