Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TheAlgorithms/JavaScript
/ push
Method
push
Data-Structures/Stack/Stack.js:20–23 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
18
19
// Adds a value onto the end of the stack
20
push(value) {
21
this.stack[this.top] = value
22
this.top++
23
}
24
25
// Removes and returns the value at the end of the stack
26
pop() {
Callers
15
convexHull
Function · 0.45
convertArbitraryBase
Function · 0.45
convertArbitraryBaseBigIntVersion
Function · 0.45
KruskalMST
Method · 0.45
lcaBinaryLifting
Function · 0.45
DFSIterative
Method · 0.45
DFSComponent
Method · 0.45
addEdge
Method · 0.45
dfsTopoSort
Method · 0.45
dfsKosaraju
Method · 0.45
kosaraju
Method · 0.45
binaryLifting
Function · 0.45
Calls
no outgoing calls
Tested by
1
output
Function · 0.36