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
↓ 36 callers
Method
pop
(self)
Leetcode/easy/min-stack.py:50
↓ 31 callers
Method
add
(self, item)
Stacks and Queues/balanced-parenthesis.py:9
↓ 18 callers
Method
insert
(self, val)
Trees/trim-bst.py:42
↓ 14 callers
Method
addEdge
(self, fro, to, cost=0)
Graph/dijkstra.py:39
↓ 12 callers
Method
insert
(self, val)
Trees/level-order-traversal.py:39
↓ 12 callers
Method
insert
(self, val)
Trees/implementing-bst.py:38
↓ 8 callers
Method
addEdge
(self, fro, to, cost=0)
Graph/dfs.py:39
↓ 8 callers
Method
addEdge
(self, fro, to, cost=0)
Graph/bfs.py:39
↓ 8 callers
Method
remove
Removes a value from the set. Returns true if the set contained the specified element.
Leetcode/medium/insert-delete-getrandom-O(1).py:59
↓ 7 callers
Method
insert
(self, n)
Trees/implementing-binary-heap.py:9
↓ 6 callers
Method
get
(self, key)
Searching-and-sorting/hashing.py:40
↓ 6 callers
Method
hasLeftChild
(self)
Trees/implementing-bst.py:21
↓ 6 callers
Method
insert
Inserts a word into the trie.
Leetcode/medium/implement-trie.py:37
↓ 5 callers
Function
anagram
(s1, s2)
Arrays/anagram-checking.py:2
↓ 5 callers
Method
find
(self, n, nums, started, known)
Leetcode/medium/house-robber-II.py:43
↓ 5 callers
Method
put
(self, key)
Searching-and-sorting/hashing.py:7
↓ 4 callers
Method
addRear
(self, item)
Stacks and Queues/deque.py:9
↓ 4 callers
Function
calc
(number, s1, s2, s3)
Leetcode/medium/integer-to-roman.py:83
↓ 4 callers
Method
getLeftChild
(self)
Trees/trim-bst.py:13
↓ 4 callers
Method
getRightChild
(self)
Trees/trim-bst.py:16
↓ 4 callers
Method
hasLeftChild
(self)
Trees/level-order-traversal.py:22
↓ 4 callers
Method
hasRightChild
(self)
Trees/level-order-traversal.py:25
↓ 4 callers
Method
hasRightChild
(self)
Trees/implementing-bst.py:24
↓ 4 callers
Method
mark
(self, b, x, y)
Leetcode/medium/surrounded-regions.py:58
↓ 4 callers
Function
uniq
(s)
Arrays/unique-char.py:2
↓ 3 callers
Method
addFront
(self, item)
Stacks and Queues/deque.py:6
↓ 3 callers
Method
addVertex
(self, key)
Graph/dfs.py:29
↓ 3 callers
Method
addVertex
(self, key)
Graph/dijkstra.py:29
↓ 3 callers
Method
addVertex
(self, key)
Graph/bfs.py:29
↓ 3 callers
Method
addVertex
(self, key)
Graph/implement-graph.py:27
↓ 3 callers
Function
check
(s)
Stacks and Queues/balanced-parenthesis.py:23
↓ 3 callers
Function
dfs
(graph, start)
Graph/dfs.py:55
↓ 3 callers
Method
hasLeftChild
(self)
Trees/trim-bst.py:25
↓ 3 callers
Method
hasRightChild
(self)
Trees/trim-bst.py:28
↓ 3 callers
Method
rehash
(self, oldhash, size)
Searching-and-sorting/hashing.py:37
↓ 3 callers
Function
reverse
(s)
Recursion/reverse-string-recursion.py:2
↓ 2 callers
Function
binary_search_iter
(arr, target)
Searching-and-sorting/binary-search.py:2
↓ 2 callers
Function
binary_search_rec
(arr, target)
Searching-and-sorting/binary-search.py:16
↓ 2 callers
Function
bubble_sort
(arr)
Searching-and-sorting/bubble-sort.py:2
↓ 2 callers
Function
check
(phrase, li, output=None)
Recursion/phrase-list-of-words.py:2
↓ 2 callers
Function
compress
(st)
Arrays/string-compression.py:2
↓ 2 callers
Method
convert
(self, a, b)
Leetcode/medium/reconstruct-itinerary.py:72
↓ 2 callers
Method
costs
(self, pos, cost, known)
Leetcode/easy/min-cost-climbing-stairs.py:28
↓ 2 callers
Method
get
(self, val)
Trees/implementing-bst.py:68
↓ 2 callers
Method
getVertex
(self, key)
Graph/dfs.py:34
↓ 2 callers
Method
getVertex
(self, key)
Graph/dijkstra.py:34
↓ 2 callers
Method
getVertex
(self, key)
Graph/bfs.py:34
↓ 2 callers
Method
hashfunction
(self, key, size)
Searching-and-sorting/hashing.py:26
↓ 2 callers
Method
inorder
(self, root)
Trees/implementing-bst.py:62
↓ 2 callers
Method
inorder
(self, root)
Trees/trim-bst.py:63
↓ 2 callers
Method
insert
(self, word)
Leetcode/easy/longest-word-in-dictionary.py:49
↓ 2 callers
Function
insertion_sort
(arr)
Searching-and-sorting/insertion-sort.py:2
↓ 2 callers
Method
maxdepth
(self,root)
Leetcode/easy/balanced-binary-tree.py:56
↓ 2 callers
Function
pair_sum
APPROACH USING DICTIONARY count = {} k = 0 for x in li: count[k] = x k += 1 print(type(count.values
Arrays/array-pair-sum.py:2
↓ 2 callers
Method
percolateDown
(self, i)
Searching-and-sorting/heap-sort.py:28
↓ 2 callers
Method
percolateDown
(self, i)
Trees/implementing-binary-heap.py:28
↓ 2 callers
Method
pop
Removes the element on top of the stack and returns that element.
Leetcode/easy/implement-stacks-using-queues.py:64
↓ 2 callers
Method
pop
Removes the element from in front of queue and returns that element.
Leetcode/easy/implement-queues-using-stacks.py:62
↓ 2 callers
Method
removeFront
(self)
Stacks and Queues/deque.py:12
↓ 2 callers
Function
rev
(str)
Arrays/sentence-reversal.py:2
↓ 2 callers
Function
selection_sort
(arr)
Searching-and-sorting/selection-sort.py:2
↓ 2 callers
Function
shell_sort
(arr)
Searching-and-sorting/shell-sort.py:2
↓ 2 callers
Method
size
(self)
Stacks and Queues/deque.py:18
↓ 2 callers
Method
size
(self)
Stacks and Queues/balanced-parenthesis.py:6
↓ 2 callers
Method
valid
(self, s)
Leetcode/medium/restore-ip-address.py:68
↓ 2 callers
Function
verify
(node)
Trees/validate-bst.py:15
↓ 1 callers
Method
addEdge
(self, fro, to, cost=0)
Graph/implement-graph.py:37
↓ 1 callers
Method
addNeighbor
(self, nbr, w)
Graph/dfs.py:9
↓ 1 callers
Method
addNeighbor
(self, nbr, w)
Graph/dijkstra.py:9
↓ 1 callers
Method
addNeighbor
(self, nbr, w)
Graph/bfs.py:9
↓ 1 callers
Method
addNeighbor
(self, nbr, w)
Graph/implement-graph.py:7
↓ 1 callers
Method
assignFlower
(self, graph, current, flowers)
Leetcode/medium/flower-planting-with-no-adjacent.py:71
↓ 1 callers
Function
bfs
(graph, start)
Graph/bfs.py:55
↓ 1 callers
Method
bfs
(self, graph, current, flowers, visited)
Leetcode/medium/flower-planting-with-no-adjacent.py:58
↓ 1 callers
Method
binary
(self, nums, l, r, target)
Leetcode/medium/find-first-and-last-position-of element.py:40
↓ 1 callers
Method
breakDown
(self, n, known)
Leetcode/medium/integer-break.py:35
↓ 1 callers
Method
buildHeap
(self, l)
Searching-and-sorting/heap-sort.py:44
↓ 1 callers
Method
buildHeap
(self, l)
Trees/implementing-binary-heap.py:44
↓ 1 callers
Method
calculate
(self, s)
Leetcode/medium/different-ways-to-add-parenthesis.py:33
↓ 1 callers
Method
check
(self, root, s)
Leetcode/medium/path-sum-II.py:39
↓ 1 callers
Method
check
(self, n, perm, temp, d)
Leetcode/medium/course-schedule-II.py:63
↓ 1 callers
Method
check
(self, s, words, known)
Leetcode/medium/word-break.py:35
↓ 1 callers
Method
check
(self, posx, posy, st, board, m, n)
Leetcode/medium/word-search.py:41
↓ 1 callers
Method
check
(self, n, perm, temp, d)
Leetcode/medium/course-schedule.py:54
↓ 1 callers
Method
check
(self, l, r)
Leetcode/easy/symmetric-tree.py:38
↓ 1 callers
Method
check
(self, root, value)
Leetcode/easy/minimum-depth-of-binary-tree.py:43
↓ 1 callers
Method
checkForSafety
(self, graph, current, safe)
Leetcode/medium/find-eventual-safe-states.py:45
↓ 1 callers
Method
checkInterleaving
(self, s1, s2, s3, index1, index2, index3, cache)
Leetcode/medium/interleaving-string.py:41
↓ 1 callers
Method
checkPalin
(self, s)
Leetcode/medium/palindrome-partitioning.py:40
↓ 1 callers
Method
coin
(self, coins, amount, known)
Leetcode/medium/coin-change.py:50
↓ 1 callers
Function
combination
(s)
Recursion/combination.py:2
↓ 1 callers
Function
combo
(start, k, n)
Leetcode/medium/combinations.py:35
↓ 1 callers
Function
combo
(arr)
Leetcode/medium/letter-combo-of-phone.py:37
↓ 1 callers
Function
combo
(candidates, target)
Leetcode/medium/combination-sum.py:51
↓ 1 callers
Function
combo
(candidates, target)
Leetcode/medium/combination-sum-2.py:41
↓ 1 callers
Method
containsNearbyDuplicate
(self, nums, k)
Leetcode/medium/contains-duplicate-III.py:43
↓ 1 callers
Method
create
(self, head)
Leetcode/medium/sorted-list-to-binary-search-tree.py:52
↓ 1 callers
Function
cyclecheck
(head)
Linked List/linked-list-cycle-check.py:7
↓ 1 callers
Method
delete
(self, val)
Trees/implementing-bst.py:92
↓ 1 callers
Method
deleteMin
(self)
Searching-and-sorting/heap-sort.py:14
next →
1–100 of 583, ranked by callers