Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/das-jishu/data-structures-basics-leetcode
/ functions
Functions
583 in github.com/das-jishu/data-structures-basics-leetcode
⨍
Functions
583
◇
Types & classes
246
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
Method
addTwoNumbers
(self, l1: ListNode, l2: ListNode)
Leetcode/medium/add-two-numbers.py:38
Method
addWord
Adds a word into the data structure.
Leetcode/medium/design-add-and-search-words-data-structure.py:52
Method
allPathsSourceTarget
(self, graph)
Leetcode/medium/all-paths-from-source-to-target.py:44
Method
arrayNesting
(self, nums)
Leetcode/medium/array-nesting.py:27
Method
buildDict
(self, dictionary: List[str])
Leetcode/medium/implement-magic-dictionary.py:51
Method
buildTree
(self, preorder, inorder)
Leetcode/medium/binary-tree-from-preorder-and-inorder.py:30
Method
buildTree
(self, inorder, postorder)
Leetcode/medium/binary-tree-from-postorder-and-inorder.py:30
Method
calcEquation
(self, equations, values, queries)
Leetcode/medium/evaluate-division.py:44
Method
calculate
(self, s: str)
Leetcode/medium/basic-calculator-II.py:33
Method
canCompleteCircuit
(self, gas, cost)
Leetcode/medium/gas-station.py:53
Method
canCompleteCircuit
(self, gas, cost)
Leetcode/medium/gas-station.py:83
Method
canFinish
(self, numCourses: int, prerequisites)
Leetcode/medium/course-schedule.py:36
Function
canJump
check = ["0"] * (len(nums) - 1) check.append("G") return self.jump(nums, 0, check)
Leetcode/medium/jump-game.py:28
Method
canPartition
(self, nums)
Leetcode/medium/partition-equal-subset-sum.py:28
Method
canVisitAllRooms
(self, rooms)
Leetcode/medium/keys-and-rooms.py:36
Method
climbStairs
(self, n: int)
Leetcode/easy/climbing-stairs.py:32
Method
clone
(n)
Leetcode/medium/clone-graph.py:76
Method
cloneGraph
(self, node: 'Node')
Leetcode/medium/clone-graph.py:73
Method
coinChange
(self, coins, amount: int)
Leetcode/medium/coin-change.py:43
Function
combinationSum
(candidates, target)
Leetcode/medium/combination-sum.py:47
Function
combinationSum2
(candidates, target)
Leetcode/medium/combination-sum-2.py:37
Method
combinationSum3
(self, k: int, n: int)
Leetcode/medium/combination-sum-III.py:55
Function
combine
(n: int, k: int)
Leetcode/medium/combinations.py:32
Method
compareVersion
(self, version1: str, version2: str)
Leetcode/medium/compare-version-numbers.py:54
Method
computeArea
(self, A: int, B: int, C: int, D: int, E: int, F: int, G: int, H: int)
Leetcode/medium/rectangle-area.py:17
Method
connect
(self, root: 'Node')
Leetcode/medium/populating-next-right-pointers-in-each-node-II.py:43
Method
connect
(self, root: 'Node')
Leetcode/medium/populating-next-right-pointers-in-each-node.py:53
Method
containsDuplicate
(self, nums)
Leetcode/easy/contains-duplicate.py:25
Method
containsNearbyAlmostDuplicate
(self, nums, k: int, t: int)
Leetcode/medium/contains-duplicate-III.py:30
Method
containsNearbyDuplicate
(self, nums, k: int)
Leetcode/easy/contains-duplicate-II.py:23
Function
convert
(self, s: str, numRows: int)
Leetcode/medium/zigzag-conversion.py:43
Method
convertToTitle
(self, n: int)
Leetcode/easy/excel-sheet-column-title.py:33
Method
copyRandomList
(self, head: 'Node')
Leetcode/medium/copy-list-with-random-number.py:54
Function
countAndSay
(n)
Leetcode/easy/count-and-say.py:31
Method
countBits
(self, num: int)
Leetcode/medium/counting-bits.py:23
Method
countNodes
(self, root: TreeNode)
Leetcode/medium/count-complete-tree-nodes.py:34
Method
countNumbersWithUniqueDigits
(self, n: int)
Leetcode/medium/count-numbers-with-unique-digits.py:20
Method
countPrimes
(self, n)
Leetcode/easy/count-primes.py:28
Method
deleteDuplicates
(self, head: ListNode)
Leetcode/medium/remove-duplicates-from-sorted-list.py:24
Method
deleteDuplicates
(self, head: ListNode)
Leetcode/easy/remove-duplicates-from-sorted-list.py:23
Method
detectCycle
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
Method
dfs
(j1, j2, j3)
Leetcode/medium/additive-number.py:43
Method
diffWaysToCompute
(self, input: str)
Leetcode/medium/different-ways-to-add-parenthesis.py:27
Method
display
(self)
Stacks and Queues/balanced-parenthesis.py:15
Function
divide
(dividend, divisor)
Leetcode/medium/divide-two-integers.py:42
Method
divisorGame
(self, N: int)
Leetcode/easy/divisor-game.py:28
Method
empty
Returns whether the stack is empty.
Leetcode/easy/implement-stacks-using-queues.py:76
Method
empty
Returns whether the queue is empty.
Leetcode/easy/implement-queues-using-stacks.py:75
Method
evalRPN
(self, tokens)
Leetcode/medium/evaluate-reverse-polish-notation.py:40
Method
eventualSafeNodes
(self, graph)
Leetcode/medium/find-eventual-safe-states.py:35
Method
exist
(self, board, word: str)
Leetcode/medium/word-search.py:33
Function
expand
(self, s, left, right)
Leetcode/medium/longest-palindromic-substring.py:44
Method
f
(self, prefix: str, suffix: str)
Leetcode/hard/prefix-and-suffix-search.py:78
Method
find
(word, cur)
Leetcode/medium/design-add-and-search-words-data-structure.py:69
Method
findCircleNum
(self, isConnected)
Leetcode/medium/number-of-provinces.py:32
Method
findDuplicate
(self, nums)
Leetcode/medium/find-the-duplicate-number.py:45
Method
findDuplicates
(self, nums)
Leetcode/medium/find-all-duplicates-in-an-array.py:21
Method
findItinerary
(self, tickets)
Leetcode/medium/reconstruct-itinerary.py:33
Method
findKthLargest
(self, nums, k: int)
Leetcode/medium/kth-largest-element-in-an-array.py:22
Method
findMin
(self, nums)
Leetcode/medium/find-minimum-in-rotated-sorted-array.py:40
Method
findMinHeightTrees
(self, n: int, edges)
Leetcode/medium/minimum-height-tree.py:42
Method
findOrder
(self, numCourses: int, prerequisites)
Leetcode/medium/course-schedule-II.py:44
Method
findPair
(self, nums, k: int)
Leetcode/medium/k-diff-pairs-in-an-array.py:78
Method
findPairs
(self, nums, k: int)
Leetcode/medium/k-diff-pairs-in-an-array.py:52
Method
findPeakElement
(self, nums)
Leetcode/medium/find-peak-element.py:27
Method
findPoisonedDuration
(self, timeSeries, duration: int)
Leetcode/medium/teemo-attacking.py:34
Method
findRepeatedDnaSequences
(self, s: str)
Leetcode/medium/repeated-dna-sequences.py:25
Method
findUnsortedSubarray
(self, nums)
Leetcode/medium/shortest-unsorted-continuous-subarray.py:33
Method
flatten
Do not return anything, modify root in-place instead.
Leetcode/medium/flatten-binary-tree-to-linked-list.py:36
Function
fourSum
(nums, target)
Leetcode/medium/4sum.py:24
Method
fractionToDecimal
(self, numerator: int, denominator: int)
Leetcode/medium/fraction-to-recurring-decimal.py:44
Method
gameOfLife
Do not return anything, modify board in-place instead.
Leetcode/medium/game-of-life.py:37
Method
gardenNoAdj
(self, n: int, paths)
Leetcode/medium/flower-planting-with-no-adjacent.py:43
Method
generate
:type numRows: int :rtype: List[List[int]]
Leetcode/easy/pascal's triangle.py:23
Function
generateMatrix
(n: int)
Leetcode/medium/spiral-matrix-II.py:17
Method
generateParenthesis
(self, n)
Leetcode/medium/generate-parenthesis.py:25
Method
generateTrees
(self, n: int)
Leetcode/medium/unique-binary-search-trees-II.py:40
Method
get
(self, key: int)
Leetcode/medium/lru-cache.py:50
Method
getConnections
(self)
Graph/dfs.py:12
Method
getConnections
(self)
Graph/dijkstra.py:12
Method
getConnections
(self)
Graph/bfs.py:12
Method
getConnections
(self)
Graph/implement-graph.py:10
Method
getHint
(self, secret: str, guess: str)
Leetcode/medium/bulls-and-cows.py:51
Method
getId
(self)
Graph/dfs.py:15
Method
getId
(self)
Graph/dijkstra.py:15
Method
getId
(self)
Graph/bfs.py:15
Method
getId
(self)
Graph/implement-graph.py:13
Method
getIntersectionNode
(self, headA: ListNode, headB: ListNode)
Leetcode/easy/intersection-of-two-linked-lists.py:45
Function
getLeftChild
(root)
Trees/implement-with-list-of-lists.py:29
Method
getLeftChild
(self)
Trees/implement-with-OOP.py:27
Method
getMin
(self)
Leetcode/easy/min-stack.py:58
Method
getParent
(self)
Trees/level-order-traversal.py:16
Method
getParent
(self)
Trees/implementing-bst.py:15
Method
getParent
(self)
Trees/trim-bst.py:19
Method
getRandom
Get a random element from the set.
Leetcode/medium/insert-delete-getrandom-O(1).py:70
← previous
next →
301–400 of 583, ranked by callers