Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/betomoedano/JavaScript-Coding-Interview-Questions
/ push
Method
push
stacks/min-stack.js:8–14 ·
view source on GitHub ↗
(element)
Source
from the content-addressed store, hash-verified
6
}
7
8
push(element) {
9
this.elements.push(element);
10
if
(element < this.min || this.min === undefined) {
11
this.min = element;
12
this.mins.push(element);
13
}
14
}
15
16
pop() {
17
if
(this.elements.length > 0) {
Callers
15
runLengthEncoding
Function · 0.45
duplicateEncode
Function · 0.45
groupAnagrams
Function · 0.45
getPalindromes
Function · 0.45
reverseWordsInString
Function · 0.45
semordnilap
Function · 0.45
firstNonRepeatingLetter
Function · 0.45
findAnagrams
Function · 0.45
caesarCipherEncryptor
Function · 0.45
combinationHelper
Function · 0.45
find
Function · 0.45
threeNumberSum
Function · 0.45
Calls
no outgoing calls
Tested by
1
getDfsOrder
Function · 0.36