MCPcopy Create free account

hub / github.com/neetcode-gh/leetcode / functions

Functions3,416 in github.com/neetcode-gh/leetcode

↓ 2 callersFunctionisSource
(count)
javascript/0210-course-schedule-ii.js:146
↓ 2 callersFunctionisStreak
(nums, num)
javascript/0128-longest-consecutive-sequence.js:26
↓ 2 callersFunctionisValidBST
(root, min = -Infinity, max = Infinity)
javascript/0098-validate-binary-search-tree.js:7
↓ 2 callersFunctionkthSmallest
(root, k, inOrder = [])
javascript/0230-kth-smallest-element-in-a-bst.js:8
↓ 2 callersFunctionlargestRectangleArea
(heights, maxArea = 0)
javascript/0084-largest-rectangle-in-histogram.js:7
↓ 2 callersFunctionlevelOrder
(root)
javascript/0102-binary-tree-level-order-traversal.js:8
↓ 2 callersFunctionmax
(a, b int)
go/0084-largest-rectangle-in-histogram.go:28
↓ 2 callersFunctionmax
Golang does not have a built-in max for integers
go/0042-trapping-rain-water.go:25
↓ 2 callersFunctionmax
(a,b int)
go/0424-longest-repeating-character-replacement.go:20
↓ 2 callersFunctionmax
(a, b int)
go/0543-diameter-of-binary-tree.go:27
↓ 2 callersFunctionmax
(a, b float64)
go/0004-median-of-two-sorted-arrays.go:58
↓ 2 callersFunctionmaxDepth
(root)
javascript/0104-maximum-depth-of-binary-tree.js:7
↓ 2 callersFunctionmerge
(left, right, mid, nums)
javascript/0912-sort-an-array.js:21
↓ 2 callersMethodmerge
(ListNode left, ListNode right)
java/0148-sort-list.java:21
↓ 2 callersFunctionmin
Golang does not have a built-in min for integers
go/0152-maximum-product-subarray.go:22
↓ 2 callersFunctionmin
(x, y int)
go/0746-min-cost-climbing-stairs.go:19
↓ 2 callersFunctionmin
(a, b int)
go/0918-maximum-sum-circular-subarray.go:35
↓ 2 callersMethodmoveToFront
(node)
javascript/0146-lru-cache.js:45
↓ 2 callersFunctionmultiplication
(num1, num2, buffer)
javascript/0043-multiply-strings.js:27
↓ 2 callersFunctionmultiply
(prev, next)
javascript/0070-climbing-stairs.js:145
↓ 2 callersFunctionnumDecodings
(str, index = 0, memo = new Map())
javascript/0091-decode-ways.js:9
↓ 2 callersFunctionnumDistinct
(s, t, i = 0, j = 0, memo = initMemo(s, t))
javascript/0115-distinct-subsequences.js:10
↓ 2 callersFunctionpalinodrome
(s: string)
typescript/0680-valid-palindrome-ii.ts:18
↓ 2 callersFunctionperformOperation
(tokens, index)
javascript/0150-evaluate-reverse-polish-notation.js:30
↓ 2 callersFunctionpop
(list *[]string)
go/0022-generate-parentheses.go:31
↓ 2 callersMethodpop
(val)
javascript/0460-lfu-cache.js:23
↓ 2 callersFunctionposToVal
(r, c)
javascript/1260-shift-2d-grid.js:5
↓ 2 callersFunctionpow
(x, n int)
go/0973-k-closest-points-to-origin.go:47
↓ 2 callersMethodremove
()
typescript/1046-last-stone-weight.ts:45
↓ 2 callersMethodremove
()
typescript/1046-Last-Stone-Weight.ts:45
↓ 2 callersFunctionremoveLeadingZero
(buffer)
javascript/0043-multiply-strings.js:37
↓ 2 callersFunctionremoveNum
(num, hashSet)
javascript/1457-pseudo-palindromic-paths-in-a-binary-tree.js:23
↓ 2 callersFunctionreorder
(str)
javascript/0242-valid-anagram.js:16
↓ 2 callersFunctionreverse
(s)
javascript/0043-multiply-strings.js:102
↓ 2 callersFunctionreversePortionOfArray
(nums, start, end)
javascript/0189-rotate-array.js:19
↓ 2 callersMethodreverseString
(String str)
java/0043-multiply-strings.java:43
↓ 2 callersFunctionrightSideView
(root)
javascript/0199-binary-tree-right-side-view.js:7
↓ 2 callersMethodrobHelper
(int[] nums, int start, int end)
java/0213-house-robber-ii.java:13
↓ 2 callersFunctionrobUtil
(nums []int, st, end int)
go/0213-house-robber-ii.go:15
↓ 2 callersFunctionsearch
(nums, total, tabu)
javascript/0494-target-sum.js:150
↓ 2 callersFunctionsearch
(matrix, row, rows, col, cols, memo)
javascript/0329-longest-increasing-path-in-a-matrix.js:94
↓ 2 callersFunctionsearch
(text1, text2, tabu)
javascript/1143-Longest-Common-Subsequence.js:94
↓ 2 callersFunctionsearch
(word1, word2, tabu)
javascript/0072-edit-distance.js:184
↓ 2 callersFunctionsearch
(nums, start, end)
javascript/0213-house-robber-ii.js:21
↓ 2 callersFunctionsearch
(nums, subSetSum, tabu)
javascript/0416-partition-equal-subset-sum.js:137
↓ 2 callersFunctionsearch
(prices, sold, held, reset)
javascript/0309-best-time-to-buy-and-sell-stock-with-cooldown.js:16
↓ 2 callersFunctionsearch
(amount, coins, tabu)
javascript/0518-coin-change-ii.js:129
↓ 2 callersFunctionsearch
(text1, text2, tabu)
javascript/1143-longest-common-subsequence.js:94
↓ 2 callersFunctionsearch
(s1, s2, s3, tabu)
javascript/0097-interleaving-string.js:153
↓ 2 callersFunctionsearch
(heights)
javascript/0417-pacific-atlantic-water-flow.js:18
↓ 2 callersFunctionsearch
(row, col, tabu)
javascript/0062-unique-paths.js:90
↓ 2 callersFunctionsearch
(s, t, tabu)
javascript/0115-distinct-subsequences.js:92
↓ 2 callersMethodsearch
(node, word, words)
javascript/1268-search-suggestions-system.js:135
↓ 2 callersFunctionsearchCols
(board)
javascript/0130-surrounded-regions.js:23
↓ 2 callersFunctionsearchCols
(heights, rows, cols, pacificReachable, atlanticReachable)
javascript/0417-pacific-atlantic-water-flow.js:60
↓ 2 callersFunctionsearchGrid
(board, boxes, cols, rows)
javascript/0036-valid-sudoku.js:77
↓ 2 callersFunctionsearchGrid
(board)
javascript/0130-surrounded-regions.js:33
↓ 2 callersFunctionsearchRows
(board)
javascript/0130-surrounded-regions.js:13
↓ 2 callersFunctionsearchRows
(heights, rows, cols, pacificReachable, atlanticReachable)
javascript/0417-pacific-atlantic-water-flow.js:36
↓ 2 callersFunctionsetCellsToZero
(matrix, isColZero)
javascript/0073-set-matrix-zeroes.js:90
↓ 2 callersFunctionsetEdgesToZero
(matrix)
javascript/0073-set-matrix-zeroes.js:74
↓ 2 callersMethodsiftDown
(idx: number, endIdx: number, heap: number[])
typescript/1046-last-stone-weight.ts:15
↓ 2 callersMethodsiftDown
(idx: number, endIdx: number, heap: number[])
typescript/1046-Last-Stone-Weight.ts:15
↓ 2 callersFunctionsquareRoot
([x, y])
javascript/0937-k-closest-points-to-origin.js:47
↓ 2 callersMethodstartsWith
Returns if there is any word in the trie that starts with the given prefix.
python/0208-implement-trie-prefix-tree.py:38
↓ 2 callersMethodstartsWith
(prefix, node = this.root)
javascript/0208-implement-trie-prefix-tree.js:48
↓ 2 callersMethodsum
(self, num1: int, num2: int)
python/2235-add-two-integers.py:2
↓ 2 callersFunctionswap
(a: number, b: number)
typescript/0075-sort-colors.ts:9
↓ 2 callersFunctionswap
(points, left, right)
javascript/0937-k-closest-points-to-origin.js:44
↓ 2 callersFunctionswap
(arr, a, b)
javascript/0287-find-the-duplicate-number.js:152
↓ 2 callersMethodswap
(int[] nums, int i, int j)
java/0075-sort-colors.java:15
↓ 2 callersMethodswap
(int[] arr, int a, int b)
java/0046-permutations.java:27
↓ 2 callersFunctionthrowError
(message)
javascript/2704-to-be-or-not-to-be.js:10
↓ 2 callersMethodtop
* @param {Array} * @return {number}
javascript/0155-min-stack.js:47
↓ 2 callersMethodtopologicalSort
(self, successors: List[List[int]], predecessors_count: List[int], num_nodes: int)
python/1203-sort-items-by-groups-respecting-dependencies.py:5
↓ 2 callersFunctiontranspose
(matrix)
javascript/0048-rotate-image.js:12
↓ 2 callersMethodtree
(TreeNode root, List<Integer> ls)
java/0872-leaf-similar-trees.java:9
↓ 2 callersFunctionunion
(n1: number, n2: number)
typescript/0684-redundant-connection.ts:15
↓ 2 callersMethodunion
(self, x, y)
python/2709-greatest-common-divisor-traversal.py:12
↓ 2 callersMethodunion
(a: number, b: number)
typescript/1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree.ts:22
↓ 2 callersMethodunion
(x, y, { parent, rank } = this)
javascript/0200-number-of-islands.js:198
↓ 2 callersFunctionupdate
(num1, i, num2, j, buffer)
javascript/0043-multiply-strings.js:44
↓ 2 callersFunctionupdate
(nums, numIndex, subSetSum, tabu)
javascript/0416-partition-equal-subset-sum.js:149
↓ 2 callersMethodupdate
(index: number, val: number)
typescript/0307-range-sum-query-mutable.ts:74
↓ 2 callersMethodupdateFrequency
(Entry e)
java/0460-lfu-cache.java:47
↓ 2 callersFunctionvalToPos
(v)
javascript/1260-shift-2d-grid.js:6
↓ 2 callersFunctionvalidPalindromeUtil
(s string, i, j int)
go/0680-valid-palindrome-ii.go:16
↓ 2 callersMethodvalidPalindromeUtil
(self, s, i, j)
python/0680-valid-palindrome-ii.py:13
↓ 2 callersMethodvalidPalindromeUtil
(String s, int i, int j)
java/0680-valid-palindrome-ii.java:13
↓ 1 callersFunctionConstructor
(n int)
go/2421-number-of-good-paths.go:14
↓ 1 callersMethodCrossSum
(self,mat)
python/1572-matrix-diagonal-sum.py:9
↓ 1 callersMethodLCS
(String s1, String s2, int i, int j, int[][] dp)
java/1143-longest-common-subsequence.java:10
↓ 1 callersFunctionMemo
(func)
javascript/2002-maximum-product-of-the-length-of-two-palindromic-subsequences.js:42
↓ 1 callersMethodPop
()
go/0743-network-delay-time.go:67
↓ 1 callersMethodPop
()
go/0355-design-twitter.go:13
↓ 1 callersMethodPop
()
go/0973-k-closest-points-to-origin.go:13
↓ 1 callersMethodPop
()
go/1584-min-cost-to-connect-all-points.go:58
↓ 1 callersMethodPrimeSum
(self,mat)
python/1572-matrix-diagonal-sum.py:3
↓ 1 callersMethodPush
(x interface{})
go/0703-kth-largest-element-in-a-stream.go:6
↓ 1 callersMethodPush
(x interface{})
go/0743-network-delay-time.go:63
← previousnext →301–400 of 3,416, ranked by callers