Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/betomoedano/JavaScript-Coding-Interview-Questions
/ functions
Functions
422 in github.com/betomoedano/JavaScript-Coding-Interview-Questions
⨍
Functions
422
◇
Types & classes
98
↓ 166 callers
Method
push
(element)
stacks/min-stack.js:8
↓ 31 callers
Method
pop
()
stacks/min-stack.js:16
↓ 10 callers
Method
addChild
(name)
graphs/depth-first-search.js:7
↓ 10 callers
Method
addChild
(name)
graphs/breadth-first-search.js:11
↓ 9 callers
Method
add
(string)
graphs/boggle-board.js:7
↓ 8 callers
Method
size
()
stacks/queue-via-stacks.js:43
↓ 5 callers
Function
chess
(size)
matrix/chess-board.js:1
↓ 4 callers
Method
_getLength
(stack)
stacks/triple-stack.js:20
↓ 4 callers
Method
addAsAncestor
(descendants)
binary-trees/youngest-commond-ancestor.js:13
↓ 4 callers
Method
find
(value)
famous-algorithms/union-find.js:11
↓ 4 callers
Method
getMax
()
stacks/min-max-stack-construction.js:36
↓ 4 callers
Method
getMin
()
stacks/min-max-stack-construction.js:31
↓ 4 callers
Function
oneAway
(array1, array2)
strings/one-away.js:48
↓ 4 callers
Function
possibleBipartition
(n, dislikes)
graphs/possible-bipartition.js:9
↓ 4 callers
Method
push
(stack, value)
stacks/triple-stack.js:24
↓ 4 callers
Function
zeroSumSubarray
(nums)
arrays/zero-subarray-sum.js:2
↓ 3 callers
Method
addMany
(values)
linkedLists/merge-linked-lists.js:7
↓ 3 callers
Function
balancedBrackets
(string)
stacks/balanced-brackets.js:4
↓ 3 callers
Function
factorial
(num)
dynamic-programming/numberOfWaysToTraverseGraph.js:54
↓ 3 callers
Function
getSums
(nums, target)
backtracking/target-sum.js:14
↓ 3 callers
Method
isEmpty
()
stacks/queue-via-stacks.js:46
↓ 3 callers
Method
peek
()
stacks/min-max-stack-construction.js:8
↓ 3 callers
Method
push
(number)
stacks/min-max-stack-construction.js:19
↓ 3 callers
Method
remove
(node)
linkedLists/construct-linked-list.js:90
↓ 3 callers
Function
routeBetweenNodes
* Given a directed graph and two nodes S and E. * Design an algorithm to find out whether there is a route from S to E * Time O(v + e) - where v are
graphs/route-between-nodes.js:8
↓ 3 callers
Method
swap
(i, j, heap)
heaps/min-heap-construction.js:59
↓ 2 callers
Method
#shiftStacks
()
stacks/queue-via-stacks.js:18
↓ 2 callers
Method
addMany
(values)
linkedLists/sum-of-linked-lists.js:9
↓ 2 callers
Method
addNode
(job)
graphs/topological-sort.js:63
↓ 2 callers
Function
allLowerOrAllUpper
(string, upper)
strings/detect-capital.js:31
↓ 2 callers
Function
backtrackAncestralTree
(lowerDecendant, higherDesecendant, diff)
binary-trees/youngest-commond-ancestor.js:47
↓ 2 callers
Function
checkPermutation
(str1, str2)
arrays/check-permutation.js:11
↓ 2 callers
Method
enqueue
(element)
graphs/dijkstrasAlgorithm.js:15
↓ 2 callers
Function
getBiggerOrEqual
(array)
binary-trees/same-bsts.js:26
↓ 2 callers
Function
getDepthOfDecendant
(decendant, topAncestor)
binary-trees/youngest-commond-ancestor.js:59
↓ 2 callers
Function
getDfsOrder
(node, values)
binary-trees/__test__/minimal-tree.test.js:3
↓ 2 callers
Function
getListArray
(list)
linkedLists/merging-linked-lists.js:60
↓ 2 callers
Function
getLongestPalindromeFrom
(string, leftIdx, rightIdx)
strings/longes-palindromic-substring.js:20
↓ 2 callers
Method
getNode
(job)
graphs/topological-sort.js:58
↓ 2 callers
Method
getNodesInArray
()
linkedLists/merge-linked-lists.js:19
↓ 2 callers
Function
getRightDifferent
(array, from, toMove)
arrays/move-element-to-end.js:32
↓ 2 callers
Function
getSmaller
(array)
binary-trees/same-bsts.js:17
↓ 2 callers
Function
getTotalSpeedHelper
(redShirtSpeeds, blueShirtSpeeds)
greedy/tandem-bicycle.js:16
↓ 2 callers
Method
insertBefore
(node, nodeToInsert)
linkedLists/construct-linked-list.js:34
↓ 2 callers
Method
isEmpty
()
graphs/dijkstrasAlgorithm.js:40
↓ 2 callers
Method
isValidSubsequence
( List<Integer> array, List<Integer> sequence )
arrays/ValidateSubsequence.java:11
↓ 2 callers
Function
numbersInPi
(pi, numbers)
recursion/numbers-in-pi.js:3
↓ 2 callers
Method
pop
()
stacks/queue-via-stacks.js:52
↓ 2 callers
Method
push
(value)
stacks/queue-via-stacks.js:49
↓ 2 callers
Method
setHead
(node)
linkedLists/construct-linked-list.js:17
↓ 2 callers
Method
siftDown
(currentIdx, endIdx, heap)
heaps/min-heap-construction.js:14
↓ 2 callers
Function
sumSpeeds
(red, blue)
arrays/tandem-bicycle.js:31
↓ 2 callers
Function
swap
(i, j, array)
sorting/quick-sort.js:39
↓ 2 callers
Function
swap
(first, second, array)
sorting/three-num-sort.js:65
↓ 2 callers
Function
swap
(i, j, array)
recursion/permutations.js:20
↓ 2 callers
Function
traverseHelper
(node, array)
binary-trees/leaf-similar-trees.js:36
↓ 1 callers
Function
DFS
(node, edges, visitedVertices, inStack)
graphs/cyle-in-graph.js:17
↓ 1 callers
Function
LCS
(i, j, a, b, memo)
dynamic-programming/longest-common-subsecuence.js:28
↓ 1 callers
Method
addPrereq
(job, prereq)
graphs/topological-sort.js:52
↓ 1 callers
Function
backtrack
(currentSubsequence, startIndex)
backtracking/491-non-decreasing-subsequences.js:42
↓ 1 callers
Function
backtrack
(idx, currSum, currSumArray, nums, result, target)
backtracking/target-sum.js:20
↓ 1 callers
Function
backtrackHelper
(openNumber, closedNumber)
recursion/generate-parentheses.js:8
↓ 1 callers
Function
bfs
(source, adjList, colors)
graphs/possible-bipartition.js:27
↓ 1 callers
Function
binarySearch
(target, nums)
arrays/longest-subsequence-with-limited-sum.js:26
↓ 1 callers
Function
binaryTreeDiameter
(tree)
binary-trees/Binary-Tree-Diameter.js:21
↓ 1 callers
Function
bottom
(row, col, matrix)
matrix/zero-matrix.js:97
↓ 1 callers
Function
branchSums
(root)
binary-trees/branch-sums.js:30
↓ 1 callers
Function
branchSumsHelper
(root, currentSum, sums)
binary-trees/branch-sums.js:34
↓ 1 callers
Method
breadthFirstSearch
(array)
graphs/breadth-first-search.js:16
↓ 1 callers
Function
bubbleSort
(array)
sorting/bubble-sort.js:10
↓ 1 callers
Function
buildFreqTable
(string)
recursion/permutations.js:55
↓ 1 callers
Method
buildHeap
(array)
heaps/min-heap-construction.js:6
↓ 1 callers
Function
buildSequence
(array, sequences, currentIdx)
dynamic-programming/disk-stacking.js:32
↓ 1 callers
Function
caesarCipherEncryptor
(string, key)
strings/caesar-cipher-encryptor.js:2
↓ 1 callers
Function
canShipInDays
(weights, capacity, days)
arrays/1011-capacity-to-ship-packages-within-d-days.js:32
↓ 1 callers
Function
changeMatrix
(matrix)
matrix/find-battleships.js:56
↓ 1 callers
Function
changeOnesConnectedToBorderToTwos
(matrix, startRow, startCol)
matrix/remove-islands.js:103
↓ 1 callers
Function
checkAnagram
(start, end, string, freq)
strings/438-find-all-anagrams-in-a-string.js:37
↓ 1 callers
Function
checkSymmetrical
(left, right)
binary-trees/symmetrical-tree.js:41
↓ 1 callers
Function
classPhotos
(redShirtHeights, blueShirtHeights)
greedy/class-photos.js:1
↓ 1 callers
Function
combinationHelper
( index, currentCombination, totalSum, target, candidates, uniqueCombinations )
arrays/combination-sum.js:16
↓ 1 callers
Function
compareWords
(word1, word2, order)
strings/953-verifying-an-alien-dictionary.js:20
↓ 1 callers
Method
contains
(value)
binary-trees/bst-construction.js:34
↓ 1 callers
Method
contains
(string)
tries/multi-string-search.js:32
↓ 1 callers
Function
containsNegative
(matrix)
matrix/minimum-pases-of-matrix.js:49
↓ 1 callers
Function
count
(n)
dynamic-programming/domino-and-tromino-tilling.js:12
↓ 1 callers
Function
createAdjacencyList
(n, edges)
graphs/sum-of-distances-in-tree.js:53
↓ 1 callers
Function
createAdjacencyList
(edges)
graphs/possible-bipartition.js:51
↓ 1 callers
Function
createAdjacencyList
(edges)
graphs/2477-minimum-fuel-cost-to-report-to-the-capital.js:26
↓ 1 callers
Function
createGraph
(edges, graph)
graphs/find-if-path-exist-in-graph.js:38
↓ 1 callers
Function
createJobGraph
(jobs, deps)
graphs/topological-sort.js:9
↓ 1 callers
Function
createMinimalBST
(arr)
binary-trees/minimal-tree.js:19
↓ 1 callers
Function
createMinimalBSTHelper
(arr, start, end)
binary-trees/minimal-tree.js:23
↓ 1 callers
Function
cycleInGraph
(edges)
graphs/cyle-in-graph.js:4
↓ 1 callers
Method
depthFirstSearch
(array)
graphs/depth-first-search.js:14
↓ 1 callers
Function
depthFirstTraverse
(node, orderedJobs)
graphs/topological-sort.js:29
↓ 1 callers
Method
dequeue
()
graphs/dijkstrasAlgorithm.js:36
↓ 1 callers
Function
dfs
(currentNode, prevNode, count)
graphs/1519-number-of-nodes-in-the-sub-tree-with-the-same-labe.js:47
↓ 1 callers
Function
dfs
(cur, parent, depth, adjList, treeInfo, count)
graphs/sum-of-distances-in-tree.js:40
↓ 1 callers
Function
dfs
(node, parent)
graphs/1443-minimum-time-to-collect-all-apples-in-a-tree.js:65
next →
1–100 of 422, ranked by callers