Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/careercup/CtCI-6th-Edition-JavaScript
/ pop
Method
pop
chapter03/3.2 - Stack Min/stackMin.js:21–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
19
}
20
21
pop() {
22
let
value = super.pop();
23
if
(value == this._minStack.peek()) {
24
this._minStack.pop();
25
this._min = this._minStack.peek();
26
}
27
return
value;
28
}
29
30
min() {
31
return
this._min;
Callers
7
add
Method · 0.45
remove
Method · 0.45
peek
Method · 0.45
stackMin.js
File · 0.45
threeInOne.js
File · 0.45
sortStack
Function · 0.45
sortStack.js
File · 0.45
Calls
1
peek
Method · 0.45
Tested by
no test coverage detected