MCPcopy
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

convexHullFunction · 0.45
convertArbitraryBaseFunction · 0.45
KruskalMSTMethod · 0.45
lcaBinaryLiftingFunction · 0.45
DFSIterativeMethod · 0.45
DFSComponentMethod · 0.45
addEdgeMethod · 0.45
dfsTopoSortMethod · 0.45
dfsKosarajuMethod · 0.45
kosarajuMethod · 0.45
binaryLiftingFunction · 0.45

Calls

no outgoing calls

Tested by 1

outputFunction · 0.36