MCPcopy Create free account
hub / github.com/careercup/ctci / absTopOfStack

Method absTopOfStack

java/Chapter 3/Question3_1/Question.java:56–58  ·  view source on GitHub ↗
(int stackNum)

Source from the content-addressed store, hash-verified

54
55 /* returns index of the top of the stack "stackNum", in absolute terms */
56 static int absTopOfStack(int stackNum) {
57 return stackNum * stackSize + stackPointer[stackNum];
58 }
59}

Callers 3

pushMethod · 0.95
popMethod · 0.95
peekMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected