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
__init__
(self, key)
Graph/bfs.py:5
Method
__init__
(self)
Graph/bfs.py:25
Method
__init__
(self, key)
Graph/implement-graph.py:3
Method
__init__
(self)
Graph/implement-graph.py:23
Method
__init__
(self, words: List[str])
Leetcode/hard/prefix-and-suffix-search.py:40
Method
__init__
(self)
Leetcode/medium/decode-ways.py:44
Method
__init__
(self, val=0, next=None)
Leetcode/medium/remove-nth-node-from-end.py:32
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/path-sum-II.py:29
Method
__init__
(self, val=0, next=None)
Leetcode/medium/reverse-linked-list-II.py:15
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/sum-root-to-leaf-numbers.py:42
Method
__init__
(self)
Leetcode/medium/sum-root-to-leaf-numbers.py:48
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/level-order-traversal.py:23
Method
__init__
(self, x: int, next: 'Node' = None, random: 'Node' = None)
Leetcode/medium/copy-list-with-random-number.py:47
Method
__init__
(self)
Leetcode/medium/course-schedule-II.py:41
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/count-complete-tree-nodes.py:25
Method
__init__
(self, val=0, next=None)
Leetcode/medium/sorted-list-to-binary-search-tree.py:37
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/sorted-list-to-binary-search-tree.py:43
Method
__init__
(self)
Leetcode/medium/top-k-frequent-words.py:45
Method
__init__
(self, val=0, next=None)
Leetcode/medium/add-two-numbers.py:33
Method
__init__
(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None)
Leetcode/medium/populating-next-right-pointers-in-each-node-II.py:36
Method
__init__
(self)
Leetcode/medium/palindrome-partitioning.py:19
Method
__init__
Initialize your data structure here.
Leetcode/medium/map-sum-pairs.py:36
Method
__init__
(self, words)
Leetcode/medium/replace-words.py:84
Method
__init__
(self, x)
Leetcode/medium/linked-list-cycle-II.py:42
Method
__init__
(self)
Leetcode/medium/surrounded-regions.py:26
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/kth-smallest-element-in-bst.py:39
Method
__init__
(self, val=0, next=None)
Leetcode/medium/insertion-sort.py:29
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/binary-tree-right-side-view.py:22
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/validate-binary-search-tree.py:36
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/zigzag-level-order-traversal.py:23
Method
__init__
(self, matrix)
Leetcode/medium/range-sum-query-2D-immutable.py:31
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/preorder-traversal.py:45
Method
__init__
Initialize your data structure here.
Leetcode/medium/insert-delete-getrandom-O(1).py:41
Method
__init__
(self, capacity: int)
Leetcode/medium/lru-cache.py:46
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/unique-binary-search-trees-II.py:34
Method
__init__
Initialize your data structure here. :type iterator: Iterator
Leetcode/medium/peeking-iterator.py:39
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/binary-tree-from-preorder-and-inorder.py:24
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/binary-tree-from-postorder-and-inorder.py:24
Method
__init__
(self)
Leetcode/medium/permutations-two.py:26
Method
__init__
Initialize your data structure here.
Leetcode/medium/implement-magic-dictionary.py:44
Method
__init__
(self, val=0, next=None)
Leetcode/medium/remove-duplicates-from-sorted-list.py:20
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/binary-search-tree-iterator.py:29
Method
__init__
(self, root: TreeNode)
Leetcode/medium/binary-search-tree-iterator.py:36
Method
__init__
(self, x)
Leetcode/medium/lowest-common-ancestor-of-a-binary-tree.py:37
Method
__init__
(self)
Leetcode/medium/lowest-common-ancestor-of-a-binary-tree.py:43
Method
__init__
(self, val = 0, neighbors = None)
Leetcode/medium/clone-graph.py:67
Method
__init__
(self)
Leetcode/medium/course-schedule.py:33
Method
__init__
(self, val=0, next=None)
Leetcode/medium/reorder-list.py:19
Method
__init__
(self, letter)
Leetcode/medium/design-add-and-search-words-data-structure.py:40
Method
__init__
Initialize your data structure here.
Leetcode/medium/design-add-and-search-words-data-structure.py:46
Method
__init__
(self, val=0, next=None)
Leetcode/medium/partition-list.py:15
Method
__init__
(self)
Leetcode/medium/generate-parenthesis.py:22
Method
__init__
(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None)
Leetcode/medium/populating-next-right-pointers-in-each-node.py:46
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/postorder-traversal.py:43
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/inorder-traversal.py:39
Method
__init__
(self)
Leetcode/medium/inorder-traversal.py:45
Method
__init__
(self)
Leetcode/medium/find-first-and-last-position-of element.py:33
Method
__init__
(self, letter)
Leetcode/medium/implement-trie.py:23
Method
__init__
Initialize your data structure here.
Leetcode/medium/implement-trie.py:30
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/medium/flatten-binary-tree-to-linked-list.py:30
Method
__init__
(self, val=0, next=None)
Leetcode/easy/merge-two-sorted.py:28
Method
__init__
(self, val=0, next=None)
Leetcode/easy/reverse-linked-list.py:18
Method
__init__
(self, x)
Leetcode/easy/intersection-of-two-linked-lists.py:40
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/same-tree.py:39
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/path-sum.py:24
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/symmetric-tree.py:29
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/binary-tree-level-order-traversal-II.py:23
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/convert-sorted-array-to-binary-search-tree.py:23
Method
__init__
(self)
Leetcode/easy/longest-word-in-dictionary.py:44
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/maximum-depth-of-binary-tree.py:36
Method
__init__
(self)
Leetcode/easy/maximum-depth-of-binary-tree.py:42
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/invert-a-binary-tree.py:31
Method
__init__
(self, x)
Leetcode/easy/lowest-common-ancestor-of-a-binary-search-tree.py:36
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/minimum-depth-of-binary-tree.py:28
Method
__init__
(self)
Leetcode/easy/minimum-depth-of-binary-tree.py:34
Method
__init__
(self, val=0, next=None)
Leetcode/easy/remove-duplicates-from-sorted-list.py:18
Method
__init__
initialize your data structure here.
Leetcode/easy/min-stack.py:39
Method
__init__
Initialize your data structure here.
Leetcode/easy/implement-stacks-using-queues.py:44
Method
__init__
(self, val=0, next=None)
Leetcode/easy/palindrome-linked-list.py:22
Method
__init__
Initialize your data structure here.
Leetcode/easy/implement-queues-using-stacks.py:43
Method
__init__
(self, val=0, left=None, right=None)
Leetcode/easy/balanced-binary-tree.py:33
Method
__init__
(self, val=0, next=None)
Leetcode/easy/remove-linked-list-elements.py:14
Method
__init__
(self, value)
Linked List/print-nth-to-last-node.py:3
Method
__init__
(self, value)
Linked List/linked-list-cycle-check.py:3
Method
__init__
(self, value)
Linked List/linked-list-reversal.py:3
Method
__init__
(self, val, parent=None)
Trees/level-order-traversal.py:4
Method
__init__
(self)
Trees/level-order-traversal.py:35
Method
__init__
(self, val, parent=None)
Trees/implementing-bst.py:3
Method
__init__
(self)
Trees/implementing-bst.py:34
Method
__init__
(self, value)
Trees/implement-with-OOP.py:4
Method
__init__
(self)
Trees/implementing-binary-heap.py:5
Method
__init__
(self, val, parent=None)
Trees/trim-bst.py:7
Method
__init__
(self)
Trees/trim-bst.py:38
Method
__init__
(self, value)
Trees/validate-bst.py:3
Method
__init__
(self)
Stacks and Queues/queue-using-2-stacks.py:3
Method
__init__
(self)
Stacks and Queues/deque.py:3
Method
__init__
(self)
Stacks and Queues/balanced-parenthesis.py:3
Method
__iter__
(self)
Graph/dfs.py:49
Method
__iter__
(self)
Graph/dijkstra.py:49
Method
__iter__
(self)
Graph/bfs.py:49
← previous
next →
201–300 of 583, ranked by callers