MCPcopy Create free account

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

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

↓ 3 callersMethodRemove
(node *Node)
go/0146-lru-cache.go:27
↓ 3 callersFunctionbuildGraph
(numCourses, prerequisites)
javascript/0207-course-schedule.js:19
↓ 3 callersFunctionbuildHeap
()
typescript/1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree.ts:73
↓ 3 callersFunctioncalculate
( nums, target, total, index = 0, sum = 0, memo = initMemo(nums, total), )
javascript/0494-target-sum.js:64
↓ 3 callersMethodcompress
(tail, head, { parent } = this)
javascript/0323-number-of-connected-components-in-an-undirected-graph.js:82
↓ 3 callersMethodcompress
(tail, head, { parent } = this)
javascript/0684-redundant-connection.js:80
↓ 3 callersFunctioncount
(root, max, total)
javascript/1448-count-good-nodes-in-binary-tree.js:13
↓ 3 callersFunctioncount
(root, max, total)
javascript/1448-Count-Good-Nodes-in-Binary-Tree.js:13
↓ 3 callersMethodcount
(int [][]board)
java/1020-number-of-enclaves.java:11
↓ 3 callersFunctioncountBeam
(beam)
javascript/2125-number-of-laser-beams-in-a-bank.js:14
↓ 3 callersFunctiondfs
(nums, left, right)
javascript/0108-convert-sorted-array-to-binary-search-tree.js:24
↓ 3 callersFunctiondfs
(n, combos = [], open = 0, close = 0, path = [])
javascript/0022-generate-parentheses.js:11
↓ 3 callersFunctiondiameterOfTree
(root, max)
javascript/0543-diameter-of-binary-tree.js:13
↓ 3 callersMethodempty
()
java/0225-implement-stack-using-queues.java:28
↓ 3 callersFunctionfindMST
( n: number, edges: Edge[], heap: typeof MinPriorityQueue, )
typescript/1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree.ts:40
↓ 3 callersMethodfindParent
(self, x)
python/0323-number-of-connected-components-in-an-undirected-graph.py:5
↓ 3 callersFunctiongetArea
(grid, row, rows, col, cols, seen)
javascript/0695-max-area-of-island.js:31
↓ 3 callersFunctiongetCell
(row, col, direction)
javascript/0054-spiral-matrix.js:321
↓ 3 callersFunctiongetCode
(char)
javascript/0567-permutation-in-string.js:45
↓ 3 callersMethodgetKey
(x, y)
javascript/2013-Detect-Squares.js:35
↓ 3 callersMethodgetLast
(String word)
java/0208-implement-trie-prefix-tree.java:26
↓ 3 callersFunctiongetMatrix
(rows, cols)
javascript/0417-pacific-atlantic-water-flow.js:31
↓ 3 callersMethodgetSize
(int[] interval)
java/1851-Minimum-Interval-to-Include-Each-Query.java:25
↓ 3 callersMethodgetSize
(int[] interval)
java/1851-minimum-interval-to-include-each-query.java:25
↓ 3 callersFunctionhasCycle
()
javascript/0202-happy-number.js:9
↓ 3 callersMethodhash
(key int)
go/0706-design-hashmap.go:28
↓ 3 callersMethodhash
(int key)
java/0706-design-hashmap.java:17
↓ 3 callersMethodhashcode
(self, key)
python/0706-design-hashmap.py:11
↓ 3 callersFunctionhashify
(root, hash, postOrderKey)
javascript/0572-subtree-of-another-tree.js:68
↓ 3 callersFunctioninitGraph
(numCourses)
javascript/0207-course-schedule.js:14
↓ 3 callersFunctioninitTabu
(nums, total)
javascript/0494-target-sum.js:136
↓ 3 callersFunctioninitTabu
(text1, text2)
javascript/1143-Longest-Common-Subsequence.js:90
↓ 3 callersFunctioninitTabu
(text1, text2)
javascript/1143-longest-common-subsequence.js:90
↓ 3 callersFunctionisClosed
(char)
javascript/0678-valid-parenthesis-string.js:91
↓ 3 callersFunctionisDP
(dp, i, k)
javascript/0678-valid-parenthesis-string.js:93
↓ 3 callersMethodisEmpty
(self)
python/0622-design-circular-queue.py:48
↓ 3 callersFunctionisMatch
(text, pattern)
javascript/0010-regular-expression-matching.js:9
↓ 3 callersFunctionisOpened
(char)
javascript/0678-valid-parenthesis-string.js:90
↓ 3 callersFunctionisRootBalanced
(root)
javascript/0110-balanced-binary-tree.js:60
↓ 3 callersFunctionisTwoDigit
(str, index)
javascript/0091-decode-ways.js:33
↓ 3 callersFunctionlegal
(row, col, color, direc)
javascript/1958-check-if-move-is-legal.js:16
↓ 3 callersFunctionmax
Golang does not have a built-in max for integers
go/0152-maximum-product-subarray.go:14
↓ 3 callersFunctionmax
(a, b int)
go/0918-maximum-sum-circular-subarray.go:28
↓ 3 callersFunctionmax
Golang does not have a built-in max for integers
go/0309-best-time-to-buy-and-sell-stock-with-cooldown.go:14
↓ 3 callersFunctionpathSum
(root, maxValue)
javascript/0124-binary-tree-maximum-path-sum.js:13
↓ 3 callersMethodpush
(int x)
java/0225-implement-stack-using-queues.java:7
↓ 3 callersMethodpushRight
(val)
javascript/0460-lfu-cache.js:44
↓ 3 callersFunctionreverse
(nums []int, start, end int)
go/0189-rotate-array.go:8
↓ 3 callersMethodsearch
(word: string)
typescript/0208-implement-trie-prefix-tree.ts:28
↓ 3 callersFunctionserial
(root, result)
javascript/0297-serialize-and-deserialize-binary-tree.js:14
↓ 3 callersFunctionsum
(nums []int)
go/0682-baseball-game.go:28
↓ 3 callersFunctionswap
(nums, j, i)
javascript/0075-sort-colors.js:16
↓ 3 callersMethodswap
(i: number, j: number, arr: number[])
typescript/1046-last-stone-weight.ts:60
↓ 3 callersMethodswap
(indexA: number, indexB: number)
typescript/0703-kth-largest-element-in-a-stream.ts:68
↓ 3 callersMethodswap
(i: number, j: number, arr: number[])
typescript/1046-Last-Stone-Weight.ts:60
↓ 3 callersMethodswap
(int[] array, int i1, int i2)
java/0347-top-k-frequent-elements.java:86
↓ 3 callersMethodtop
({ minHeap } = this)
javascript/0703-kth-largest-element-in-a-stream.js:42
↓ 2 callersMethodBinarySearch
(List<Integer> ls, int target)
java/2251-number-of-flowers-in-full-bloom.java:24
↓ 2 callersMethodEmpty
()
go/0225-implement-stack-using-queues.go:38
↓ 2 callersMethodInsert
(node *Node)
go/0146-lru-cache.go:32
↓ 2 callersFunctionNewNode
(key, val int)
go/0706-design-hashmap.go:7
↓ 2 callersMethodPop
()
go/0703-kth-largest-element-in-a-stream.go:7
↓ 2 callersMethodPop
()
go/1046-last-stone-weight.go:7
↓ 2 callersMethodPop
()
go/0295-find-median-from-data-stream.go:6
↓ 2 callersMethodPush
(x interface{})
go/0355-design-twitter.go:12
↓ 2 callersFunctionabs
(n int)
go/0448-find-all-numbers-disappeared-in-an-array.go:16
↓ 2 callersFunctionabs
(a int)
go/0973-k-closest-points-to-origin.go:40
↓ 2 callersFunctionabs
(n int)
go/1584-min-cost-to-connect-all-points.go:41
↓ 2 callersFunctionabs
(x int)
go/0977-squares-of-a-sorted-array.go:17
↓ 2 callersFunctionadd
(l1, l2, tail, sentinel, carry = 0)
javascript/0002-add-two-numbers.js:19
↓ 2 callersFunctionaddBot
(matrix, top, bot, left, right, order)
javascript/0054-spiral-matrix.js:84
↓ 2 callersFunctionaddLeft
(matrix, top, bot, left, right, order)
javascript/0054-spiral-matrix.js:93
↓ 2 callersFunctionaddNum
(num, hashSet)
javascript/1457-pseudo-palindromic-paths-in-a-binary-tree.js:19
↓ 2 callersFunctionaddRight
(matrix, top, bot, left, right, order)
javascript/0054-spiral-matrix.js:75
↓ 2 callersFunctionaddTop
(matrix, top, bot, left, right, order)
javascript/0054-spiral-matrix.js:66
↓ 2 callersFunctionbackTrack
(currCourse, graph, path)
javascript/0207-course-schedule.js:51
↓ 2 callersFunctionbfs
( matrix: number[][], queue: number[][], visited: boolean[][], )
typescript/0417-pacific-atlantic-water-flow.ts:7
↓ 2 callersFunctionbfs
(heights, queue)
javascript/0417-pacific-atlantic-water-flow.js:192
↓ 2 callersFunctionbfs
(nums, subsets = [[]])
javascript/0078-subsets.js:41
↓ 2 callersFunctionbinSearch
(nums []int, target int, leftBias bool)
go/0034-find-first-and-last-position-of-element-in-sorted-array.go:7
↓ 2 callersMethodbinSearch
(self, nums, target, leftBias)
python/0034-find-first-and-last-position-of-element-in-sorted-array.py:8
↓ 2 callersFunctionbinarySearch
(isLeftBias, nums, target)
javascript/0034-find-first-and-last-position-of-element-in-sorted-array.js:18
↓ 2 callersMethodbinarySearch
(int[][] intervals, int start, int target)
java/1235-maximum-profit-in-job-scheduling.java:38
↓ 2 callersFunctionbuildGraph
(numCourses, prerequisites)
javascript/0210-course-schedule-ii.js:24
↓ 2 callersFunctionbuildGraph
(words)
javascript/0269-alien-dictionary.js:25
↓ 2 callersFunctionbuildGraph
(times, n, k)
javascript/0743-network-delay-time.js:27
↓ 2 callersFunctionbuildGraph
(n, edges)
javascript/0261-graph-valid-tree.js:24
↓ 2 callersFunctioncanBuildGraph
(words, graph, frequencyMap)
javascript/0269-alien-dictionary.js:38
↓ 2 callersFunctioncanRemove
(index)
javascript/2038-remove-colored-pieces-if-both-neighbors-are-the-same-color.js:12
↓ 2 callersFunctioncanSplit
(largest)
javascript/0410-split-array-largest-sum.js:24
↓ 2 callersFunctioncheckNeighbors
( node, graph, color, topologicalOrder, isDirectedAcyclicGraph, )
javascript/0210-course-schedule-ii.js:85
↓ 2 callersFunctioncheckNeighbors
(queue, graph, maxTime)
javascript/0743-network-delay-time.js:47
↓ 2 callersFunctioncoinChange
(coins, amount, coin = 0)
javascript/0322-coin-change.js:9
↓ 2 callersFunctioncompress
(union, i, head)
javascript/0261-graph-valid-tree.js:125
↓ 2 callersMethodcontains
(self, key: int)
python/0705-design-hashset.py:14
↓ 2 callersFunctioncount
(s string)
go/0438-find-all-anagrams-in-a-string.go:25
↓ 2 callersMethodcountOnes
(String str)
java/2125-number-of-laser-beams-in-a-bank.java:15
↓ 2 callersMethodcountPali
(self, s, l, r)
python/0647-palindromic-substrings.py:10
↓ 2 callersMethodcount_lands
(int[][] grid)
java/1568-minimum-number-of-days-to-disconnect-island.java:42
↓ 2 callersFunctioncreateMatrix
(n: number, m: number)
typescript/0417-pacific-atlantic-water-flow.ts:46
← previousnext →101–200 of 3,416, ranked by callers