MCPcopy Create free account

hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / functions

Functions422 in github.com/betomoedano/JavaScript-Coding-Interview-Questions

↓ 1 callersFunctiondfs
(node)
graphs/2246-longest-path-with-different-adjacent-chars.js:34
↓ 1 callersFunctiondfs
(curNode, preNode)
graphs/2477-minimum-fuel-cost-to-report-to-the-capital.js:10
↓ 1 callersFunctiondfs
(start, result, currentList, string)
backtracking/131-palindrome-partitioning.js:28
↓ 1 callersFunctiondfs2
(cur, parent, ans_p, adjList, output, count, n)
graphs/sum-of-distances-in-tree.js:23
↓ 1 callersFunctionencoding
(string)
strings/run-length-encoding.js:3
↓ 1 callersFunctionexplore
(row, col, board, visited, trieNode, finalWords)
graphs/boggle-board.js:33
↓ 1 callersFunctionfind
(target, currPath, index, candidates, paths)
arrays/combination-sum.js:69
↓ 1 callersFunctionfindBattleships
(matrix)
matrix/find-battleships.js:4
↓ 1 callersFunctionfindClosestValueInBst
(tree, target)
binary-trees/find-closest-value-in-bst.js:3
↓ 1 callersFunctionfindClosestValueInBstHelper
(tree, target, closest)
binary-trees/find-closest-value-in-bst.js:7
↓ 1 callersFunctionfindKthHelper
(tree, array)
binary-trees/find-kth-largest-value-in-bst.js:16
↓ 1 callersFunctionfindMaxSum
(tree)
binary-trees/max-path-sum-in-binary-tree.js:9
↓ 1 callersFunctionfindSmallStringsIn
(string, startIdx, trie, containedStrings)
tries/multi-string-search.js:87
↓ 1 callersFunctionfindSuccessor
(tree, node)
binary-trees/Find-Successor.js:29
↓ 1 callersFunctionfirstNonRepeatingLetter
(s)
strings/first-non-repeating-letter.js:3
↓ 1 callersFunctiongenerateParenthesis
(n)
recursion/generate-parentheses.js:4
↓ 1 callersFunctiongetBattleShip
(matrix, startRow, startCol)
matrix/find-battleships.js:19
↓ 1 callersFunctiongetCountsAndFirstYPosition
(pattern, counts)
strings/pattern-matcher.js:44
↓ 1 callersFunctiongetLength
(head)
linkedLists/linked-list-palindrome.js:65
↓ 1 callersFunctiongetMaxHeight
(node, treeInfo, nodeDepth = 1)
binary-trees/104-maximum-depth-of-binary-tree.js:29
↓ 1 callersFunctiongetMinSpaces
(pi, numbersTable, cache, idx)
recursion/numbers-in-pi.js:13
↓ 1 callersMethodgetMinValue
()
binary-trees/bst-construction.js:90
↓ 1 callersFunctiongetNeighbors
(row, col, board)
graphs/boggle-board.js:48
↓ 1 callersFunctiongetNeighbors
(row, col, matrix)
matrix/minimum-pases-of-matrix.js:39
↓ 1 callersFunctiongetNeighbors
(grid, row, col)
matrix/number-of-islands.js:31
↓ 1 callersFunctiongetNeighbors
(matrix, row, col)
matrix/find-battleships.js:42
↓ 1 callersFunctiongetNeighbors
(matrix, row, col)
matrix/remove-islands.js:123
↓ 1 callersFunctiongetNewLetter
(char, aphabet, key)
strings/caesar-cipher-encryptor.js:13
↓ 1 callersFunctiongetNewPattern
(pattern)
strings/pattern-matcher.js:35
↓ 1 callersFunctiongetNextIdx
(currentIdx, array)
dynamic-programming/hasSingleCycle.js:19
↓ 1 callersFunctiongetOrderedJobs
(graph)
graphs/topological-sort.js:17
↓ 1 callersFunctiongetPalindromes
(string)
strings/palindroms-inside-string.js:5
↓ 1 callersFunctiongetPermsHelper
(freq, prefix, remaining, result)
recursion/permutations.js:38
↓ 1 callersFunctiongetPermutations
(array)
recursion/permutations.js:2
↓ 1 callersFunctiongetStartingAndEnding
(startingIdx, nums, target)
arrays/find-first-and-last-position-of-element-in-sorted-array.js:26
↓ 1 callersFunctiongetSumHelper
(node, low, high, sumInfo)
binary-trees/range-sum-of-bst.js:27
↓ 1 callersFunctiongetTaskDurationToIndices
(tasks)
greedy/task-assignment.js:27
↓ 1 callersFunctiongetTreeInfoHelper
(tree)
binary-trees/Binary-Tree-Diameter.js:25
↓ 1 callersFunctiongetTrees
()
binary-trees/youngest-commond-ancestor.js:20
↓ 1 callersFunctiongetUnvisitedNeighbors
(row, col, matrix, visited)
graphs/riverSizes.js:81
↓ 1 callersFunctiongetVertexWithMinDistance
(distances, visited)
graphs/dijkstrasAlgorithm.js:161
↓ 1 callersFunctiongetYoungestCommonAncestor
(topAncestor, descendantOne, descendantTwo)
binary-trees/youngest-commond-ancestor.js:29
↓ 1 callersFunctiongroupAnagrams
(words)
strings/group-anagrams.js:4
↓ 1 callersFunctionhasSingleCycle
(array)
dynamic-programming/hasSingleCycle.js:7
↓ 1 callersFunctionhasUniqueCharacters
(string)
arrays/has-unique-chars.js:3
↓ 1 callersFunctionheightBalancedBinaryTree
(tree)
binary-trees/heigth-balanced-binary-tree.js:22
↓ 1 callersFunctionhelper
(node, currMax, currMin)
binary-trees/maximum-difference-between-node-and-ancestor.js:21
↓ 1 callersFunctioninOrderTraverse
(node, items)
binary-trees/Find-Successor.js:43
↓ 1 callersMethodinsert
(values, i = 0)
binary-trees/branch-sums.js:7
↓ 1 callersMethodinsert
(string)
tries/multi-string-search.js:61
↓ 1 callersMethodinsertAfter
(node, nodeToInsert)
linkedLists/construct-linked-list.js:48
↓ 1 callersFunctioninsertInSortedOrder
(stack, value)
stacks/sort-stack.js:16
↓ 1 callersMethodinsertStringFrom
(i, string)
tries/multi-string-search.js:19
↓ 1 callersMethodinsertSubstringStartingAt
(i, string)
tries/suffix-trie-construction.js:15
↓ 1 callersFunctionisBalancedHelper
(node)
binary-trees/heigth-balanced-binary-tree.js:26
↓ 1 callersFunctionisOutOfBounds
(row, col, height, width)
matrix/zigzag-traverse.js:43
↓ 1 callersFunctionisOutOfOrder
(i, num, array)
arrays/subarray-sort.js:27
↓ 1 callersFunctionisPalindrome
(string)
strings/palindroms-inside-string.js:25
↓ 1 callersFunctionisPalindrome
(string)
backtracking/131-palindrome-partitioning.js:43
↓ 1 callersFunctionisUnique
(string)
strings/isUnique.js:1
↓ 1 callersFunctionisValidWalk
(walk)
arrays/isValidWalk.js:1
↓ 1 callersFunctionkadanesAlgorithm
(array)
arrays/kadanes-algorith.js:7
↓ 1 callersFunctionlargestRange
(array)
arrays/largest-range.js:3
↓ 1 callersFunctionleft
(row, col, matrix)
matrix/zero-matrix.js:104
↓ 1 callersFunctionlevenshteinDistance
(str1, str2)
dynamic-programming/levenshteinDistance.js:4
↓ 1 callersFunctionlistOfDepths
(root)
binary-trees/list-of-depths.js:17
↓ 1 callersFunctionlongestCommonSubstring
(string1, string2)
dynamic-programming/longest-common-subsecuence.js:45
↓ 1 callersFunctionlongestPalindromicSubstring
(string)
strings/longes-palindromic-substring.js:5
↓ 1 callersFunctionmaxSubArray
(nums)
arrays/max-subarray.js:4
↓ 1 callersFunctionmaxSubsetSumNoAdjacent
(array)
dynamic-programming/max-subset-sum-no-adjacent.js:39
↓ 1 callersFunctionmergeLinkedLists
(headOne, headTwo)
linkedLists/merge-linked-lists.js:33
↓ 1 callersFunctionminHeightHelper
(array, startIdx, endIdx)
binary-trees/min-heigth-bst.js:7
↓ 1 callersFunctionminNumberOfCoinsForChange
(n, denoms)
dynamic-programming/min-num-of-coins-for-change.js:3
↓ 1 callersFunctionminRewards
(scores)
arrays/min-rewards.js:4
↓ 1 callersFunctionminimumPassesOfMatrix
(matrix)
matrix/minimum-pases-of-matrix.js:5
↓ 1 callersFunctionnextGreaterElement
(array)
stacks/next-greater-element.js:3
↓ 1 callersFunctionnodeDepths
(root)
binary-trees/node-depths.js:10
↓ 1 callersFunctionnumIslands
(grid)
matrix/number-of-islands.js:3
↓ 1 callersFunctionnumberOfWaysToMakeChange
(n, denoms)
dynamic-programming/number-of-ways-to-make-change.js:4
↓ 1 callersFunctionnumberOfWaysToTraverseGraph
(width, height)
dynamic-programming/numberOfWaysToTraverseGraph.js:48
↓ 1 callersMethodpeek
()
stacks/queue-via-stacks.js:55
↓ 1 callersFunctionpermutationsHelper
(i, array, permutations)
recursion/permutations.js:8
↓ 1 callersFunctionphoneNumberMnemonics
(phoneNumber)
recursion/phone-number-mnemonics.js:19
↓ 1 callersFunctionphoneNumberMnemonicsHelper
( idx, phoneNumber, currentMnemonic, mnemonicsFound )
recursion/phone-number-mnemonics.js:28
↓ 1 callersMethodpop
()
stacks/min-max-stack-construction.js:13
↓ 1 callersMethodpopulateSuffixTrieFrom
(string)
tries/multi-string-search.js:13
↓ 1 callersMethodpopulateSuffixTrieFrom
(string)
tries/suffix-trie-construction.js:9
↓ 1 callersFunctionpowerset
(array, idx = null)
recursion/powerset.js:21
↓ 1 callersFunctionproductSum
(array, depth = 1)
recursion/product-sum.js:3
↓ 1 callersFunctionquickSort
(array)
sorting/quick-sort.js:5
↓ 1 callersFunctionquickSortHelper
(array, startIdx, endIdx)
sorting/quick-sort.js:10
↓ 1 callersFunctionremove
(string1, string2)
strings/one-edit.js:67
↓ 1 callersMethodremove
()
heaps/min-heap-construction.js:47
↓ 1 callersMethodremoveBindings
(node)
linkedLists/construct-linked-list.js:106
↓ 1 callersFunctionremoveDuplicates
(nums)
arrays/remove-duplicates-from-sorted-array.js:19
↓ 1 callersFunctionremoveDuplicatesFromLinkedList
(linkedList)
linkedLists/remove-duplicates-from-linkedlist.js:51
↓ 1 callersFunctionremoveIslands
(matrix)
matrix/remove-islands.js:73
↓ 1 callersFunctionremoveMiddleNode
(list, valueToRemove)
linkedLists/remove-middle-node.js:15
↓ 1 callersFunctionreverseInOrderTraverse
(node, k, treeInfo)
binary-trees/find-kth-largest-value-in-bst.js:42
↓ 1 callersFunctionreverseList
(list)
strings/reverse-words-in-string.js:25
← previousnext →101–200 of 422, ranked by callers