MCPcopy Create free account

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

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

↓ 1 callersMethodburst
(int[] nums, int left, int right, int[][] dp)
java/0312-burst-balloons.java:13
↓ 1 callersFunctionbuyAndSell
(prices, i, tabu, max = 0)
javascript/0309-best-time-to-buy-and-sell-stock-with-cooldown.js:57
↓ 1 callersFunctioncache
(func: Function)
typescript/2002-maximum-product-of-the-length-of-two-palindromic-subsequences.ts:40
↓ 1 callersFunctioncalcMaxBit
(nums, bits = 0)
javascript/0287-find-the-duplicate-number.js:78
↓ 1 callersMethodcalculate
(int[] nums, int i, int sum, int S)
java/0494-target-sum.java:11
↓ 1 callersFunctioncanAttend
(intervals)
javascript/0252-meeting-rooms.js:15
↓ 1 callersFunctioncanEat
canEat returns true if all the bananas can be eaten within the time limit at speed
go/0875-koko-eating-bananas.go:2
↓ 1 callersFunctioncanExpand
()
javascript/0005-longest-palindromic-substring.js:38
↓ 1 callersMethodcanFormWord
(String word, int[] letterCount)
java/1255-maximum-score-words-formed-by-letters.java:28
↓ 1 callersFunctioncanJumpFromIndex
(nums, memo, index = 0)
javascript/0055-jump-game.js:30
↓ 1 callersFunctioncanMove
(matrix, row, rows, col, cols, direction)
javascript/0054-spiral-matrix.js:290
↓ 1 callersFunctioncanMove
()
javascript/0025-reverse-nodes-in-k-group.js:26
↓ 1 callersFunctioncanPop
(path, stack)
javascript/0071-simplify-path.js:25
↓ 1 callersFunctioncanPush
(path)
javascript/0071-simplify-path.js:22
↓ 1 callersFunctioncanReach
(grid [][]int, visited [][]bool, x, y, gridSize, level int)
go/0778-swim-in-rising-water.go:27
↓ 1 callersMethodcanShip
(int cap, int days, int[] weights)
java/1011-capacity-to-ship-packages-within-d-days.java:2
↓ 1 callersFunctioncanShrink
(stack, temperatures, day)
javascript/0739-daily-temperatures.js:46
↓ 1 callersFunctioncanShrink
()
javascript/0084-largest-rectangle-in-histogram.js:118
↓ 1 callersMethodcanSkip
(char, child)
javascript/0212-word-search-ii.js:61
↓ 1 callersFunctioncanSlide
()
javascript/0076-minimum-window-substring.js:32
↓ 1 callersFunctioncanSwap
(nums, num, indexNum)
javascript/0041-first-missing-positive.js:42
↓ 1 callersFunctioncanWordBreak
(queue, s, wordSet, seen)
javascript/0139-word-break.js:176
↓ 1 callersMethodcan_form_word
(String s)
java/1225-maximum-score-words-formed-by-letters.java:30
↓ 1 callersFunctioncarry
(digits)
javascript/0066-plus-one.js:17
↓ 1 callersFunctioncereal
(root: TreeNode | null)
typescript/0297-serialize-and-deserialize-binary-tree.ts:21
↓ 1 callersFunctioncheck
(idxS: number, idxP: number)
typescript/0010-regular-expression-matching.ts:8
↓ 1 callersFunctioncheck
(text, pattern, row, col, memo)
javascript/0010-regular-expression-matching.js:65
↓ 1 callersFunctioncheck
(dp, size, i)
javascript/0678-valid-parenthesis-string.js:77
↓ 1 callersFunctioncheck
(arr)
javascript/0473-matchsticks-to-square.js:1
↓ 1 callersMethodcheck
( char[][] board, String word, int i, int j, int m, int n,
java/0079-word-search.java:20
↓ 1 callersMethodcheck
(int[] nums, int l, int r)
java/1630-arithmetic-subarrays.java:41
↓ 1 callersMethodcheckAncestors
* Helper method to check ancestors * Time O(n) | Space O(1) * @param {number} index * @return {boolean}
javascript/1993-operations-on-tree.js:92
↓ 1 callersFunctioncheckAns
(maxTime)
javascript/0743-network-delay-time.js:60
↓ 1 callersMethodcheckBlock
(int idxI, int idxJ, char[][] board)
java/0036-valid-sudoku.java:49
↓ 1 callersMethodcheckDescendants
* Helper method to check descendants * Time O(n) | Space O(n) * @param {number} index * @return {boolean}
javascript/1993-operations-on-tree.js:107
↓ 1 callersMethodcheckDescendantsAndLockIfNeeded
(int num)
java/1993-operations-on-tree.java:61
↓ 1 callersFunctioncheckFrequency
(map)
javascript/0242-valid-anagram.js:62
↓ 1 callersFunctioncheckLastLevel
(arr)
javascript/0958-check-completeness-of-a-binary-tree.js:30
↓ 1 callersFunctioncheckNeighbor
(heights, row, rows, col, cols, isReachable, queue)
javascript/0417-pacific-atlantic-water-flow.js:216
↓ 1 callersFunctioncheckNeighbor
(graph, visited, queue)
javascript/0261-graph-valid-tree.js:91
↓ 1 callersFunctioncheckNeighbors
(graph, indegree, queue, order)
javascript/0207-course-schedule.js:193
↓ 1 callersFunctioncheckNeighbors
(graph, indegree, sources)
javascript/0329-longest-increasing-path-in-a-matrix.js:249
↓ 1 callersFunctioncheckNeighbors
(queue, frequencyMap, graph, buffer)
javascript/0269-alien-dictionary.js:72
↓ 1 callersFunctioncheckNeighbors
(graph, src, seen, minHeap)
javascript/1584-Min-Cost-to-Connect-all-Points.js:64
↓ 1 callersFunctioncheckNeighbors
(rooms, queue)
javascript/0286-walls-and-gates.js:82
↓ 1 callersFunctioncheckNeighbors
(grid, row, rows, col, cols, seen, minHeap)
javascript/0778-swim-in-rising-water.js:36
↓ 1 callersFunctioncheckNeighbors
(graph, cost, city, stops, seen, minHeap)
javascript/0787-cheapest-flights-within-k-stops.js:54
↓ 1 callersFunctioncheckNeighbors
(graph, src, seen, minHeap)
javascript/1584-min-cost-to-connect-all-points.js:64
↓ 1 callersFunctioncheckWord
(s, wordSet, end, tabu)
javascript/0139-word-break.js:124
↓ 1 callersMethodcheckWord
(node, words)
javascript/0212-word-search-ii.js:68
↓ 1 callersFunctionchoosePivot
(points, left, right)
javascript/0973-k-closest-points-to-origin.js:177
↓ 1 callersFunctionclone
(node *Node, visited map[*Node]*Node)
go/0133-clone-graph.go:17
↓ 1 callersFunctioncloneGraph
(node, seen = new Map())
javascript/0133-clone-graph.js:7
↓ 1 callersFunctioncloneNeighbors
(node, seen, queue)
javascript/0133-clone-graph.js:64
↓ 1 callersFunctioncloneNode
(curr)
javascript/0138-copy-list-with-random-pointer.js:38
↓ 1 callersFunctioncolorBackTrack
( node, graph, color, topologicalOrder, isDirectedAcyclicGraph, )
javascript/0210-course-schedule-ii.js:67
↓ 1 callersMethodcomb
( int[] candidates, int target, List<List<Integer>> ans, List<Integer> ls,
java/0040-combination-sum-ii.java:11
↓ 1 callersFunctioncombinationSum
( candidates, target, index = 0, combination = [], combinations = [], )
javascript/0039-combination-sum.js:8
↓ 1 callersFunctionconnectNode
(head)
javascript/0138-copy-list-with-random-pointer.js:59
↓ 1 callersMethodconnectNode
(node, top)
javascript/0146-lru-cache.js:53
↓ 1 callersFunctionconnectRandomNode
(curr)
javascript/0138-copy-list-with-random-pointer.js:51
↓ 1 callersFunctioncontains
(s []string, word string)
go/0127-word-ladder.go:40
↓ 1 callersMethodconvert
(int n, int col)
java/0051-n-queens.java:110
↓ 1 callersMethodconvertBSTRecursive
(TreeNode node)
java/0538-convert-bst-to-greater-tree.java:10
↓ 1 callersFunctionconvertToWords
(num)
javascript/0273-integer-to-english-words.js:8
↓ 1 callersFunctioncount
(nums, bit)
javascript/0287-find-the-duplicate-number.js:90
↓ 1 callersMethodcount
(int n, int k, int target)
java/1155-number-of-dice-rolls-with-target-sum.java:12
↓ 1 callersMethodcount
(int i, int k, char prev, int prev_count, String s)
java/1531-string-compression-ii.java:8
↓ 1 callersMethodcountNodes
(ListNode root)
java/0725-split-linked-list-in-parts.java:21
↓ 1 callersFunctioncountZeros
(col)
javascript/0861-score-after-flipping-matrix.js:12
↓ 1 callersMethodcreateAnswer
(boolean[][] board, ArrayList<String> ans)
java/0051-n-queens.java:28
↓ 1 callersFunctioncreateCounter
(n)
javascript/2620-counter.js:5
↓ 1 callersMethodcreateDegrees
()
java/0269-alien-dictionary.java:58
↓ 1 callersMethodcreateEdges
(String left, String right)
java/0269-alien-dictionary.java:8
↓ 1 callersFunctioncreateGraph
(numCourses: number, edges: number[][])
typescript/0207-course-schedule.ts:34
↓ 1 callersFunctioncreateProblemsObj
(PROBLEM_SITE_DATA)
updateCompletionTable.js:30
↓ 1 callersFunctioncyclicSort
(nums, index = 0)
javascript/0041-first-missing-positive.js:14
↓ 1 callersFunctioncyclicSort
(nums, index = 0)
javascript/0287-find-the-duplicate-number.js:151
↓ 1 callersFunctiondecereal
()
typescript/0297-serialize-and-deserialize-binary-tree.ts:38
↓ 1 callersFunctiondelimitWord
(str, index)
javascript/0271-encode-and-decode-strings.js:40
↓ 1 callersMethoddepthFirstSearch
( int node, int previous, Set<Integer> visited )
java/0261-graph-valid-tree.java:26
↓ 1 callersMethoddeserializeDFS
(String[] tokens)
java/0297-serialize-and-deserialize-binary-tree.java:38
↓ 1 callersFunctiondfs
(r: number, c: number, node: TrieNode, word: string)
typescript/0212-word-search-ii.ts:30
↓ 1 callersFunctiondfs
(root: TreeNode | null)
typescript/0124-binary-tree-maximum-path-sum.ts:19
↓ 1 callersFunctiondfs
(course: number)
typescript/0210-course-schedule-ii.ts:14
↓ 1 callersFunctiondfs
(node: number)
typescript/1462-course-schedule-iv.ts:14
↓ 1 callersFunctiondfs
(i: number, cur: number[], total: number)
typescript/0039-combination-sum.ts:4
↓ 1 callersFunctiondfs
(row: number, col: number, idx: number)
typescript/0079-word-search.ts:10
↓ 1 callersFunctiondfs
(node: Node, memo: Map<Node, Node>)
typescript/0133-clone-graph.ts:1
↓ 1 callersFunctiondfs
(root)
typescript/0145-binary-tree-postorder-traversal.ts:18
↓ 1 callersFunctiondfs
(word: string)
typescript/0472-concatenated-words.ts:13
↓ 1 callersFunctiondfs
(grid, r, c)
typescript/0695-max-area-of-island.ts:11
↓ 1 callersFunctiondfs
(root, max)
typescript/1448-count-good-nodes-in-binary-tree.ts:8
↓ 1 callersFunctiondfs
(root)
typescript/0144-binary-tree-preorder-traversal.ts:18
↓ 1 callersFunctiondfs
( node: number, prevNode: number, visited: Visited, adjacent: Obj, )
typescript/0261-graph-valid-tree.ts:27
↓ 1 callersFunctiondfs
(node: TreeNode | null)
typescript/0789-minimum-distance-between-two-bst-nodes.ts:18
↓ 1 callersFunctiondfs
(root: TreeNode | null)
typescript/0543-diameter-of-binary-tree.ts:18
↓ 1 callersFunctiondfs
(root, max)
typescript/1448-Count-Good-Nodes-in-Binary-Tree.ts:8
↓ 1 callersFunctiondfs
(i: number)
typescript/0131-palindrome-partitioning.ts:5
↓ 1 callersFunctiondfs
(node1, node2)
javascript/0101-symmetric-tree.js:20
← previousnext →501–600 of 3,416, ranked by callers