MCPcopy Index your code
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / size

Method size

stacks/queue-via-stacks.js:7–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 }
6
7 size() {
8 return this.stackNewest.size() + this.stackOldest.size();
9 }
10
11 push(x) {
12 /* Push into stackNewest; wich always has the newes elements on top */

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected