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
↓ 1 callers
Method
deleteMin
(self)
Trees/implementing-binary-heap.py:14
↓ 1 callers
Method
dequeue
(self)
Stacks and Queues/queue-using-2-stacks.py:10
↓ 1 callers
Method
dfs
(self, graph, current, parent, count, distance)
Leetcode/hard/sum-of-distances-in-tree.py:40
↓ 1 callers
Method
dfs
(self, graph, node, currentPath, paths)
Leetcode/medium/all-paths-from-source-to-target.py:50
↓ 1 callers
Method
dfs
(self, rooms, current, visited)
Leetcode/medium/keys-and-rooms.py:43
↓ 1 callers
Method
dfs
(self, current, neighbors, itinerary, n, remainingPlaces)
Leetcode/medium/reconstruct-itinerary.py:52
↓ 1 callers
Method
dfs
(self, num, den, value, visited, graph)
Leetcode/medium/evaluate-division.py:65
↓ 1 callers
Method
disjkstra
(self, src, dest)
Graph/dijkstra.py:55
↓ 1 callers
Method
display
(self)
Stacks and Queues/deque.py:21
↓ 1 callers
Method
enqueue
(self, item)
Stacks and Queues/queue-using-2-stacks.py:7
↓ 1 callers
Function
fib
(n)
Recursion/fibonacci.py:5
↓ 1 callers
Method
fillUpRest
(self, graph, current, parent, count, distance)
Leetcode/hard/sum-of-distances-in-tree.py:49
↓ 1 callers
Method
find
(self, s, store)
Leetcode/medium/palindrome-partitioning.py:26
↓ 1 callers
Method
find
(self, k, n, arr)
Leetcode/medium/combination-sum-III.py:59
↓ 1 callers
Method
find
(self, root, count)
Leetcode/easy/maximum-depth-of-binary-tree.py:49
↓ 1 callers
Method
findCombinations
(self, s, index)
Leetcode/medium/decode-ways.py:57
↓ 1 callers
Method
findMinChild
(self, i)
Searching-and-sorting/heap-sort.py:37
↓ 1 callers
Method
findMinChild
(self, i)
Trees/implementing-binary-heap.py:37
↓ 1 callers
Method
findPeak
(self, left, right, nums)
Leetcode/medium/find-peak-element.py:32
↓ 1 callers
Method
findSuccessor
(self, node)
Trees/implementing-bst.py:86
↓ 1 callers
Method
getLeftChild
(self)
Trees/level-order-traversal.py:10
↓ 1 callers
Method
getLeftChild
(self)
Trees/implementing-bst.py:9
↓ 1 callers
Method
getNeighbors
(self, board, i, j)
Leetcode/medium/game-of-life.py:67
↓ 1 callers
Method
getRightChild
(self)
Trees/level-order-traversal.py:13
↓ 1 callers
Method
getRightChild
(self)
Trees/implementing-bst.py:12
↓ 1 callers
Method
getString
(self, i1, i2, i3)
Leetcode/medium/interleaving-string.py:64
↓ 1 callers
Method
getSum
(self, trieNode)
Leetcode/medium/map-sum-pairs.py:61
↓ 1 callers
Method
hasBothChildren
(self)
Trees/implementing-bst.py:27
↓ 1 callers
Method
hasOneChild
(self)
Trees/implementing-bst.py:30
↓ 1 callers
Function
heapSort
(arr)
Searching-and-sorting/heap-sort.py:53
↓ 1 callers
Method
inorder
(self, root)
Leetcode/medium/binary-search-tree-iterator.py:52
↓ 1 callers
Method
inorder
(self, root)
Leetcode/medium/lowest-common-ancestor-of-a-binary-tree.py:68
↓ 1 callers
Method
inorder
(self, root)
Leetcode/medium/inorder-traversal.py:52
↓ 1 callers
Method
inorder
(self, root)
Trees/level-order-traversal.py:60
↓ 1 callers
Method
insert
(self, n)
Searching-and-sorting/heap-sort.py:9
↓ 1 callers
Method
insert
(self, word)
Leetcode/medium/top-k-frequent-words.py:49
↓ 1 callers
Function
insertion_sort_gap
(arr, start, gap)
Searching-and-sorting/shell-sort.py:9
↓ 1 callers
Method
ip
(self, s, n)
Leetcode/medium/restore-ip-address.py:43
↓ 1 callers
Function
large
(arr)
Arrays/largest-continuous-sum.py:2
↓ 1 callers
Method
length
(self)
Trees/implementing-bst.py:59
↓ 1 callers
Method
level_traversal
(self, root)
Trees/level-order-traversal.py:66
↓ 1 callers
Function
merge_sort
(arr)
Searching-and-sorting/merge-sort.py:2
↓ 1 callers
Function
minSum
(posx, posy, m, n, known, grid)
Leetcode/medium/minimum-path-sum.py:34
↓ 1 callers
Function
missing
(arr1, arr2)
Arrays/find-missing-num.py:2
↓ 1 callers
Method
modify
(self, board, i, j, visited)
Leetcode/medium/game-of-life.py:50
↓ 1 callers
Method
next
:rtype: int
Leetcode/medium/peeking-iterator.py:59
↓ 1 callers
Method
peek
(self)
Stacks and Queues/balanced-parenthesis.py:18
↓ 1 callers
Method
percolateUp
(self, i)
Searching-and-sorting/heap-sort.py:20
↓ 1 callers
Method
percolateUp
(self, i)
Trees/implementing-binary-heap.py:20
↓ 1 callers
Function
permutations
(s)
Recursion/permutations-string.py:2
↓ 1 callers
Method
permute
(self, nums)
Leetcode/medium/permutations-two.py:34
↓ 1 callers
Method
populateTrie
(self, word, index)
Leetcode/hard/prefix-and-suffix-search.py:48
↓ 1 callers
Method
populateTrie
(self, words)
Leetcode/medium/replace-words.py:89
↓ 1 callers
Function
printntolast
(val, head)
Linked List/print-nth-to-last-node.py:19
↓ 1 callers
Function
q_s
(arr)
Searching-and-sorting/quick-sort.py:2
↓ 1 callers
Function
quick_sort
(arr, first, last)
Searching-and-sorting/quick-sort.py:5
↓ 1 callers
Function
rec
(target, coins, known)
Recursion/coin-change.py:2
↓ 1 callers
Function
recursiveBFS
(q, visited)
Graph/bfs.py:69
↓ 1 callers
Function
recursiveDFS
(q, visited)
Graph/dfs.py:69
↓ 1 callers
Method
remove
(self)
Stacks and Queues/balanced-parenthesis.py:12
↓ 1 callers
Method
removeRear
(self)
Stacks and Queues/deque.py:15
↓ 1 callers
Method
rev
(self, parent, cur)
Leetcode/easy/reverse-linked-list.py:26
↓ 1 callers
Function
reverse
(head)
Linked List/print-nth-to-last-node.py:7
↓ 1 callers
Function
reverse
(head)
Linked List/linked-list-reversal.py:7
↓ 1 callers
Method
robber
(self, pos, num, known)
Leetcode/easy/house-robber.py:33
↓ 1 callers
Method
runDfs
(self, current, graph, visited)
Leetcode/medium/number-of-provinces.py:50
↓ 1 callers
Function
search
(arr, value)
Leetcode/medium/3sum.py:44
↓ 1 callers
Method
searchHelper
(self, word, index, trieNode, count)
Leetcode/medium/implement-magic-dictionary.py:63
↓ 1 callers
Method
searchPrefixIndexes
(self, prefix)
Leetcode/hard/prefix-and-suffix-search.py:97
↓ 1 callers
Method
searchSuffixIndexes
(self, suffix)
Leetcode/hard/prefix-and-suffix-search.py:106
↓ 1 callers
Method
select
(self, target, n, nums)
Leetcode/medium/partition-equal-subset-sum.py:39
↓ 1 callers
Function
split
(arr, first, last)
Searching-and-sorting/quick-sort.py:11
↓ 1 callers
Method
step
(self, current, n, known)
Leetcode/easy/climbing-stairs.py:35
↓ 1 callers
Function
subset
(nums)
Leetcode/medium/subsets.py:27
↓ 1 callers
Function
subsets
(nums)
Leetcode/medium/subsets-II.py:25
↓ 1 callers
Method
sums
(self, root, num)
Leetcode/medium/sum-root-to-leaf-numbers.py:55
↓ 1 callers
Function
threeSum
(num, tar)
Leetcode/medium/4sum.py:41
↓ 1 callers
Method
traverse
(self, grid, i, j)
Leetcode/medium/number-of-islands.py:47
↓ 1 callers
Method
traverse
(self, grid, posx, posy)
Leetcode/medium/max-area-of-island.py:37
↓ 1 callers
Method
traverse
(self, string, n)
Leetcode/medium/generate-parenthesis.py:33
↓ 1 callers
Method
tree
(self, pre, inorder)
Leetcode/medium/binary-tree-from-preorder-and-inorder.py:35
↓ 1 callers
Method
tree
(self, post, inorder)
Leetcode/medium/binary-tree-from-postorder-and-inorder.py:35
↓ 1 callers
Method
trees
(self, start, end, dic)
Leetcode/medium/unique-binary-search-trees.py:30
↓ 1 callers
Method
trees
(self, start, end)
Leetcode/medium/unique-binary-search-trees-II.py:43
↓ 1 callers
Method
trimBST
(self, tree, minVal, maxVal)
Trees/trim-bst.py:69
↓ 1 callers
Function
twoSum
(arr, value)
Leetcode/medium/4sum.py:56
↓ 1 callers
Function
unique
(posx, posy, m, n, known, obstacles)
Leetcode/medium/unique-paths-II.py:43
↓ 1 callers
Function
unique
(posx, posy, m, n, known)
Leetcode/medium/unique-paths.py:46
↓ 1 callers
Function
validateBST
(node, min, max)
Trees/validate-bst.py:8
Function
BinaryTree
(r)
Trees/implement-with-list-of-lists.py:2
Method
__contains__
(self, n)
Graph/dfs.py:52
Method
__contains__
(self, n)
Graph/dijkstra.py:52
Method
__contains__
(self, n)
Graph/bfs.py:52
Method
__contains__
(self, n)
Graph/implement-graph.py:50
Method
__init__
(self)
Searching-and-sorting/heap-sort.py:5
Method
__init__
(self)
Searching-and-sorting/hashing.py:3
Method
__init__
(self, key)
Graph/dfs.py:5
Method
__init__
(self)
Graph/dfs.py:25
Method
__init__
(self, key)
Graph/dijkstra.py:5
Method
__init__
(self)
Graph/dijkstra.py:25
← previous
next →
101–200 of 583, ranked by callers