MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / getMin

Method getMin

javascript/0155-min-stack.js:54–56  ·  view source on GitHub ↗

* @return {number}

(minStack = this.minStack)

Source from the content-addressed store, hash-verified

52 * @return {number}
53 */
54 getMin(minStack = this.minStack) {
55 return this.top(minStack); /* Time O(1) */
56 }
57}
58
59/**

Callers 1

popMethod · 0.95

Calls 1

topMethod · 0.95

Tested by

no test coverage detected