MCPcopy Create free account

hub / github.com/das-jishu/data-structures-basics-leetcode / functions

Functions583 in github.com/das-jishu/data-structures-basics-leetcode

Method__iter__
(self)
Graph/implement-graph.py:47
Method__str__
(self)
Graph/dfs.py:21
Method__str__
(self)
Graph/dijkstra.py:21
Method__str__
(self)
Graph/bfs.py:21
Method__str__
(self)
Graph/implement-graph.py:19
MethodaddTwoNumbers
(self, l1: ListNode, l2: ListNode)
Leetcode/medium/add-two-numbers.py:38
MethodaddWord
Adds a word into the data structure.
Leetcode/medium/design-add-and-search-words-data-structure.py:52
MethodallPathsSourceTarget
(self, graph)
Leetcode/medium/all-paths-from-source-to-target.py:44
MethodarrayNesting
(self, nums)
Leetcode/medium/array-nesting.py:27
MethodbuildDict
(self, dictionary: List[str])
Leetcode/medium/implement-magic-dictionary.py:51
MethodbuildTree
(self, preorder, inorder)
Leetcode/medium/binary-tree-from-preorder-and-inorder.py:30
MethodbuildTree
(self, inorder, postorder)
Leetcode/medium/binary-tree-from-postorder-and-inorder.py:30
MethodcalcEquation
(self, equations, values, queries)
Leetcode/medium/evaluate-division.py:44
Methodcalculate
(self, s: str)
Leetcode/medium/basic-calculator-II.py:33
MethodcanCompleteCircuit
(self, gas, cost)
Leetcode/medium/gas-station.py:53
MethodcanCompleteCircuit
(self, gas, cost)
Leetcode/medium/gas-station.py:83
MethodcanFinish
(self, numCourses: int, prerequisites)
Leetcode/medium/course-schedule.py:36
FunctioncanJump
check = ["0"] * (len(nums) - 1) check.append("G") return self.jump(nums, 0, check)
Leetcode/medium/jump-game.py:28
MethodcanPartition
(self, nums)
Leetcode/medium/partition-equal-subset-sum.py:28
MethodcanVisitAllRooms
(self, rooms)
Leetcode/medium/keys-and-rooms.py:36
MethodclimbStairs
(self, n: int)
Leetcode/easy/climbing-stairs.py:32
Methodclone
(n)
Leetcode/medium/clone-graph.py:76
MethodcloneGraph
(self, node: 'Node')
Leetcode/medium/clone-graph.py:73
MethodcoinChange
(self, coins, amount: int)
Leetcode/medium/coin-change.py:43
FunctioncombinationSum
(candidates, target)
Leetcode/medium/combination-sum.py:47
FunctioncombinationSum2
(candidates, target)
Leetcode/medium/combination-sum-2.py:37
MethodcombinationSum3
(self, k: int, n: int)
Leetcode/medium/combination-sum-III.py:55
Functioncombine
(n: int, k: int)
Leetcode/medium/combinations.py:32
MethodcompareVersion
(self, version1: str, version2: str)
Leetcode/medium/compare-version-numbers.py:54
MethodcomputeArea
(self, A: int, B: int, C: int, D: int, E: int, F: int, G: int, H: int)
Leetcode/medium/rectangle-area.py:17
Methodconnect
(self, root: 'Node')
Leetcode/medium/populating-next-right-pointers-in-each-node-II.py:43
Methodconnect
(self, root: 'Node')
Leetcode/medium/populating-next-right-pointers-in-each-node.py:53
MethodcontainsDuplicate
(self, nums)
Leetcode/easy/contains-duplicate.py:25
MethodcontainsNearbyAlmostDuplicate
(self, nums, k: int, t: int)
Leetcode/medium/contains-duplicate-III.py:30
MethodcontainsNearbyDuplicate
(self, nums, k: int)
Leetcode/easy/contains-duplicate-II.py:23
Functionconvert
(self, s: str, numRows: int)
Leetcode/medium/zigzag-conversion.py:43
MethodconvertToTitle
(self, n: int)
Leetcode/easy/excel-sheet-column-title.py:33
MethodcopyRandomList
(self, head: 'Node')
Leetcode/medium/copy-list-with-random-number.py:54
FunctioncountAndSay
(n)
Leetcode/easy/count-and-say.py:31
MethodcountBits
(self, num: int)
Leetcode/medium/counting-bits.py:23
MethodcountNodes
(self, root: TreeNode)
Leetcode/medium/count-complete-tree-nodes.py:34
MethodcountNumbersWithUniqueDigits
(self, n: int)
Leetcode/medium/count-numbers-with-unique-digits.py:20
MethodcountPrimes
(self, n)
Leetcode/easy/count-primes.py:28
MethoddeleteDuplicates
(self, head: ListNode)
Leetcode/medium/remove-duplicates-from-sorted-list.py:24
MethoddeleteDuplicates
(self, head: ListNode)
Leetcode/easy/remove-duplicates-from-sorted-list.py:23
MethoddetectCycle
nodes = set() nodes.add(head) while head != None: if head.next not in nodes: nodes.add(head.next)
Leetcode/medium/linked-list-cycle-II.py:47
Methoddfs
(j1, j2, j3)
Leetcode/medium/additive-number.py:43
MethoddiffWaysToCompute
(self, input: str)
Leetcode/medium/different-ways-to-add-parenthesis.py:27
Methoddisplay
(self)
Stacks and Queues/balanced-parenthesis.py:15
Functiondivide
(dividend, divisor)
Leetcode/medium/divide-two-integers.py:42
MethoddivisorGame
(self, N: int)
Leetcode/easy/divisor-game.py:28
Methodempty
Returns whether the stack is empty.
Leetcode/easy/implement-stacks-using-queues.py:76
Methodempty
Returns whether the queue is empty.
Leetcode/easy/implement-queues-using-stacks.py:75
MethodevalRPN
(self, tokens)
Leetcode/medium/evaluate-reverse-polish-notation.py:40
MethodeventualSafeNodes
(self, graph)
Leetcode/medium/find-eventual-safe-states.py:35
Methodexist
(self, board, word: str)
Leetcode/medium/word-search.py:33
Functionexpand
(self, s, left, right)
Leetcode/medium/longest-palindromic-substring.py:44
Methodf
(self, prefix: str, suffix: str)
Leetcode/hard/prefix-and-suffix-search.py:78
Methodfind
(word, cur)
Leetcode/medium/design-add-and-search-words-data-structure.py:69
MethodfindCircleNum
(self, isConnected)
Leetcode/medium/number-of-provinces.py:32
MethodfindDuplicate
(self, nums)
Leetcode/medium/find-the-duplicate-number.py:45
MethodfindDuplicates
(self, nums)
Leetcode/medium/find-all-duplicates-in-an-array.py:21
MethodfindItinerary
(self, tickets)
Leetcode/medium/reconstruct-itinerary.py:33
MethodfindKthLargest
(self, nums, k: int)
Leetcode/medium/kth-largest-element-in-an-array.py:22
MethodfindMin
(self, nums)
Leetcode/medium/find-minimum-in-rotated-sorted-array.py:40
MethodfindMinHeightTrees
(self, n: int, edges)
Leetcode/medium/minimum-height-tree.py:42
MethodfindOrder
(self, numCourses: int, prerequisites)
Leetcode/medium/course-schedule-II.py:44
MethodfindPair
(self, nums, k: int)
Leetcode/medium/k-diff-pairs-in-an-array.py:78
MethodfindPairs
(self, nums, k: int)
Leetcode/medium/k-diff-pairs-in-an-array.py:52
MethodfindPeakElement
(self, nums)
Leetcode/medium/find-peak-element.py:27
MethodfindPoisonedDuration
(self, timeSeries, duration: int)
Leetcode/medium/teemo-attacking.py:34
MethodfindRepeatedDnaSequences
(self, s: str)
Leetcode/medium/repeated-dna-sequences.py:25
MethodfindUnsortedSubarray
(self, nums)
Leetcode/medium/shortest-unsorted-continuous-subarray.py:33
Methodflatten
Do not return anything, modify root in-place instead.
Leetcode/medium/flatten-binary-tree-to-linked-list.py:36
FunctionfourSum
(nums, target)
Leetcode/medium/4sum.py:24
MethodfractionToDecimal
(self, numerator: int, denominator: int)
Leetcode/medium/fraction-to-recurring-decimal.py:44
MethodgameOfLife
Do not return anything, modify board in-place instead.
Leetcode/medium/game-of-life.py:37
MethodgardenNoAdj
(self, n: int, paths)
Leetcode/medium/flower-planting-with-no-adjacent.py:43
Methodgenerate
:type numRows: int :rtype: List[List[int]]
Leetcode/easy/pascal's triangle.py:23
FunctiongenerateMatrix
(n: int)
Leetcode/medium/spiral-matrix-II.py:17
MethodgenerateParenthesis
(self, n)
Leetcode/medium/generate-parenthesis.py:25
MethodgenerateTrees
(self, n: int)
Leetcode/medium/unique-binary-search-trees-II.py:40
Methodget
(self, key: int)
Leetcode/medium/lru-cache.py:50
MethodgetConnections
(self)
Graph/dfs.py:12
MethodgetConnections
(self)
Graph/dijkstra.py:12
MethodgetConnections
(self)
Graph/bfs.py:12
MethodgetConnections
(self)
Graph/implement-graph.py:10
MethodgetHint
(self, secret: str, guess: str)
Leetcode/medium/bulls-and-cows.py:51
MethodgetId
(self)
Graph/dfs.py:15
MethodgetId
(self)
Graph/dijkstra.py:15
MethodgetId
(self)
Graph/bfs.py:15
MethodgetId
(self)
Graph/implement-graph.py:13
MethodgetIntersectionNode
(self, headA: ListNode, headB: ListNode)
Leetcode/easy/intersection-of-two-linked-lists.py:45
FunctiongetLeftChild
(root)
Trees/implement-with-list-of-lists.py:29
MethodgetLeftChild
(self)
Trees/implement-with-OOP.py:27
MethodgetMin
(self)
Leetcode/easy/min-stack.py:58
MethodgetParent
(self)
Trees/level-order-traversal.py:16
MethodgetParent
(self)
Trees/implementing-bst.py:15
MethodgetParent
(self)
Trees/trim-bst.py:19
MethodgetRandom
Get a random element from the set.
Leetcode/medium/insert-delete-getrandom-O(1).py:70
← previousnext →301–400 of 583, ranked by callers