MCPcopy
hub / github.com/kevin-wayne/algs4 / isEmpty

Method isEmpty

src/main/java/edu/princeton/cs/algs4/Stack.java:73–75  ·  view source on GitHub ↗

Returns true if this stack is empty. @return true if this stack is empty; false otherwise

()

Source from the content-addressed store, hash-verified

71 * @return true if this stack is empty; false otherwise
72 */
73 public boolean isEmpty() {
74 return first == null;
75 }
76
77 /**
78 * Returns the number of items in this stack.

Callers 13

popMethod · 0.95
peekMethod · 0.95
mainMethod · 0.95
bfsMethod · 0.95
EulerianPathMethod · 0.95
sortMethod · 0.95
DirectedEulerianCycleMethod · 0.95
HopcroftKarpMethod · 0.95
EulerianCycleMethod · 0.95
sortMethod · 0.95
NonrecursiveDFSMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected