Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djeada/Algorithms-And-Data-Structures
/ functions
Functions
1,481 in github.com/djeada/Algorithms-And-Data-Structures
⨍
Functions
1,481
◇
Types & classes
357
↓ 156 callers
Method
size
src/graphs/cpp/bfs/src/graph.cpp:123
↓ 79 callers
Method
push
src/collections_and_containers/cpp/heap/src/heap.cpp:18
↓ 76 callers
Method
push_back
src/collections_and_containers/cpp/vector/src/vector.cpp:79
↓ 72 callers
Method
pop
src/collections_and_containers/cpp/heap/src/heap.cpp:31
↓ 61 callers
Method
end
src/collections_and_containers/cpp/vector/src/vector.cpp:42
↓ 57 callers
Method
empty
src/graphs/cpp/bfs/src/graph.cpp:127
↓ 53 callers
Method
add
src/collections_and_containers/cpp/hash_table/src/hash_table.cpp:24
↓ 47 callers
Method
begin
src/collections_and_containers/cpp/vector/src/vector.cpp:38
↓ 43 callers
Method
insert
src/collections_and_containers/cpp/avl_tree/src/avl_tree.cpp:26
↓ 41 callers
Method
get
src/collections_and_containers/cpp/hash_table/src/hash_table.cpp:47
↓ 36 callers
Method
insert
src/collections_and_containers/cpp/red_black_tree/src/red_black_tree.cpp:27
↓ 34 callers
Method
insert
Insert a value into the tree.
src/collections_and_containers/python/binary_search_tree/src/binary_search_tree.py:24
↓ 30 callers
Method
insert
src/collections_and_containers/cpp/binary_search_tree/src/binary_search_tree.cpp:30
↓ 26 callers
Method
insert
Insert a value into the tree.
src/collections_and_containers/python/avl_tree/src/avl_tree.py:25
↓ 26 callers
Method
insert
Insert a value into the tree.
src/collections_and_containers/python/red_black_tree/src/red_black_tree.py:39
↓ 25 callers
Method
add
Add or update a key-value pair.
src/collections_and_containers/python/hash_table/src/hash_table.py:18
↓ 24 callers
Method
addEdge
src/graphs/cpp/prim/src/graph.cpp:55
↓ 24 callers
Method
addEdge
src/graphs/cpp/kruskal/src/graph.cpp:57
↓ 24 callers
Method
push
Add an element to the heap.
src/collections_and_containers/python/heap/src/heap.py:22
↓ 24 callers
Method
push_back
Add an element to the end of the list.
src/collections_and_containers/python/linked_list/src/linked_list.py:23
↓ 23 callers
Method
add_edge
Add an edge to the graph.
src/graphs/python/bellman_ford/src/graph.py:66
↓ 23 callers
Method
add_edge
Add an edge to the graph.
src/graphs/python/dijkstra/src/graph.py:66
↓ 23 callers
Method
add_edge
Add an edge to the graph.
src/graphs/python/bfs/src/graph.py:66
↓ 23 callers
Method
add_edge
Add an edge to the graph.
src/graphs/python/dfs/src/graph.py:66
↓ 21 callers
Method
front
src/collections_and_containers/cpp/queue/src/queue.cpp:65
↓ 21 callers
Method
push_back
src/collections_and_containers/cpp/linked_list/src/linked_list.cpp:32
↓ 19 callers
Method
addEdge
src/graphs/cpp/bellman_ford/src/graph.cpp:54
↓ 19 callers
Method
addEdge
src/graphs/cpp/dijkstra/src/graph.cpp:54
↓ 19 callers
Method
addEdge
src/graphs/cpp/bfs/src/graph.cpp:54
↓ 19 callers
Method
addEdge
src/graphs/cpp/dfs/src/graph.cpp:54
↓ 19 callers
Method
add_edge
Add an edge to the graph.
src/graphs/python/prim/src/graph.py:66
↓ 19 callers
Method
add_edge
Add an edge to the graph.
src/graphs/python/kruskal/src/graph.py:66
↓ 19 callers
Method
get
src/brain_teasers/cpp/lru_cache/src/lru_cache.cpp:11
↓ 18 callers
Method
pop
Remove and return the top element.
src/collections_and_containers/python/heap/src/heap.py:27
↓ 18 callers
Method
push_back
Add an element to the end of the vector.
src/collections_and_containers/python/vector/src/vector.py:51
↓ 16 callers
Method
add_edge
Add an edge to the graph.
src/graphs/python/graph/src/graph.py:66
↓ 16 callers
Method
add_edge
Add a directed edge from u to v. Args: u: Source vertex. v: Destination vertex.
src/backtracking/python/topological_sort/src/topological_sort.py:18
↓ 16 callers
Method
add_edge
src/backtracking/cpp/topological_sort/src/topological_sort.cpp:8
↓ 16 callers
Method
back
src/collections_and_containers/cpp/queue/src/queue.cpp:72
↓ 16 callers
Method
put
src/brain_teasers/cpp/lru_cache/src/lru_cache.cpp:22
↓ 15 callers
Function
bellmanFord
src/graphs/cpp/bellman_ford/src/bellman_ford.cpp:7
↓ 15 callers
Function
bfs
src/graphs/cpp/bfs/src/bfs.cpp:8
↓ 15 callers
Function
dfs
src/graphs/cpp/dfs/src/dfs.cpp:8
↓ 15 callers
Function
dijkstra
src/graphs/cpp/dijkstra/src/dijkstra.cpp:9
↓ 15 callers
Method
enqueue
src/collections_and_containers/cpp/queue/src/queue.cpp:56
↓ 15 callers
Function
isPalindromeAfterDeletion
src/brain_teasers/cpp/is_palindrome_after_char_deletion/src/palindrome.cpp:15
↓ 15 callers
Method
push
src/collections_and_containers/cpp/stack/src/stack.cpp:46
↓ 14 callers
Function
addStrings
src/brain_teasers/cpp/add_string_numbers/src/add_string_numbers.cpp:26
↓ 14 callers
Method
connected
Check if two vertices are directly connected by an edge.
src/graphs/python/graph/src/graph.py:98
↓ 14 callers
Function
exponential_search
Search for a target value in a sorted array using exponential search. This algorithm grows the right boundary exponentially (1, 2, 4, 8, ...
src/searching/python/exponential_search/src/exponential_search.py:8
↓ 14 callers
Function
interpolation_search
Search for a target value in a sorted array using interpolation search. This algorithm estimates the likely position of the target using the
src/searching/python/interpolation_search/src/interpolation_search.py:6
↓ 14 callers
Function
minDeletionsToMakeValid
src/brain_teasers/cpp/deletions_to_make_valid_parentheses/src/valid_parentheses.cpp:3
↓ 14 callers
Method
size
src/collections_and_containers/cpp/hash_table/src/hash_table.cpp:94
↓ 13 callers
Function
binary_search
Search for a target value in a sorted array using binary search. This algorithm repeatedly halves the search interval by comparing the t
src/searching/python/binary_search/src/binary_search.py:8
↓ 13 callers
Function
find
(vertex: Vertex)
src/graphs/python/kruskal/src/kruskal.py:24
↓ 13 callers
Function
jump_search
Search for a target value in a sorted array using jump search. This algorithm jumps ahead by fixed block sizes to find the block that may
src/searching/python/jump_search/src/jump_search.py:9
↓ 13 callers
Method
pop
src/collections_and_containers/cpp/stack/src/stack.cpp:39
↓ 12 callers
Method
addEdge
src/graphs/cpp/graph/src/graph.cpp:54
↓ 12 callers
Function
bellman_ford
Find the shortest path between source and destination using Bellman-Ford algorithm. This algorithm handles negative edge weights and dete
src/graphs/python/bellman_ford/src/bellman_ford.py:10
↓ 12 callers
Function
bfs
Find the shortest path between source and destination using BFS. Note: BFS finds the shortest path in terms of number of edges, but this
src/graphs/python/bfs/src/bfs.py:11
↓ 12 callers
Function
canConstructBasic
src/dynamic_programming/cpp/can_construct/src/can_construct.cpp:5
↓ 12 callers
Method
contains
Check if the tree contains a value.
src/collections_and_containers/python/binary_search_tree/src/binary_search_tree.py:77
↓ 12 callers
Method
copy
src/collections_and_containers/cpp/stack/src/stack.cpp:16
↓ 12 callers
Method
dequeue
src/collections_and_containers/cpp/queue/src/queue.cpp:45
↓ 12 callers
Function
dfs
Find a path between source and destination using DFS. Note: DFS does not guarantee the shortest path. For shortest paths, use BFS (u
src/graphs/python/dfs/src/dfs.py:10
↓ 12 callers
Function
dijkstra
Find the shortest path between source and destination using Dijkstra's algorithm. This implementation uses a priority queue (min-heap) fo
src/graphs/python/dijkstra/src/dijkstra.py:11
↓ 11 callers
Method
add_edge
Add an undirected edge between vertices u and v. Args: u: First vertex. v: Second vertex.
src/backtracking/python/k_colorable_configurations/src/k_colorable_configurations.py:12
↓ 11 callers
Method
add_edge
Add an undirected edge between vertices u and v. Args: u: First vertex. v: Second vertex.
src/backtracking/python/hamiltonian_paths/src/hamiltonian_paths.py:12
↓ 11 callers
Method
add_edge
src/backtracking/cpp/k_colorable_configurations/src/k_colorable_configurations.cpp:6
↓ 11 callers
Method
add_edge
src/backtracking/cpp/hamiltonian_paths/src/hamiltonian_paths.cpp:6
↓ 11 callers
Method
height
src/collections_and_containers/cpp/red_black_tree/src/red_black_tree.cpp:72
↓ 11 callers
Function
interpolation_search
src/searching/cpp/interpolation_search/src/interpolation_search.cpp:8
↓ 11 callers
Method
push
Add an element to the top of the stack.
src/collections_and_containers/python/stack/src/stack.py:32
↓ 11 callers
Method
size
src/collections_and_containers/cpp/red_black_tree/src/red_black_tree.cpp:74
↓ 11 callers
Method
top
src/collections_and_containers/cpp/stack/src/stack.cpp:53
↓ 11 callers
Method
visit
src/brain_teasers/cpp/design_browser_history/src/browser_history.cpp:9
↓ 10 callers
Function
binary_search
src/searching/cpp/binary_search/src/binary_search.cpp:8
↓ 10 callers
Method
empty
src/collections_and_containers/cpp/heap/src/heap.cpp:80
↓ 10 callers
Function
exponential_search
src/searching/cpp/exponential_search/src/exponential_search.cpp:9
↓ 10 callers
Function
heap_sort
Sort an array using the heap sort algorithm. This implementation builds a min-heap and repeatedly extracts the minimum element to produc
src/sorting/python/heap_sort/src/heap_sort.py:8
↓ 10 callers
Function
heap_sort
src/sorting/cpp/heap_sort/src/heap_sort.cpp:39
↓ 10 callers
Function
insertion_sort
Sort an array using the insertion sort algorithm. This algorithm builds the sorted array one element at a time by repeatedly picking the
src/sorting/python/insertion_sort/src/insertion_sort.py:8
↓ 10 callers
Function
insertion_sort
src/sorting/cpp/insertion_sort/src/insertion_sort.cpp:8
↓ 10 callers
Function
jump_search
src/searching/cpp/jump_search/src/jump_search.cpp:10
↓ 10 callers
Function
linear_search
Search for a target value in an array using linear search. This algorithm scans the array from left to right, comparing each element wit
src/searching/python/linear_search/src/linear_search.py:8
↓ 10 callers
Function
linear_search
src/searching/cpp/linear_search/src/linear_search.cpp:8
↓ 10 callers
Function
merge_sort
Sort an array using the merge sort algorithm with index-based merging. This implementation uses indices instead of slicing in the merge step
src/sorting/python/merge_sort/src/merge_sort.py:8
↓ 10 callers
Function
merge_sort
src/sorting/cpp/merge_sort/src/merge_sort.cpp:67
↓ 10 callers
Function
min_insertions_helper
(s: str, l: int, h: int)
src/dynamic_programming/python/minimum_insertions_for_palindrome/src/minimum_insertions_for_palindrome.py:20
↓ 10 callers
Method
peek
Return the top element without removing it.
src/collections_and_containers/python/heap/src/heap.py:36
↓ 10 callers
Function
quick_sort
Sort an array using quick sort with 2-way partitioning. This implementation uses a random pivot selection to avoid worst-case performanc
src/sorting/python/quick_sort/src/quick_sort.py:9
↓ 10 callers
Function
quick_sort
src/sorting/cpp/quick_sort/src/quick_sort.cpp:53
↓ 10 callers
Function
quick_sort_three_way
Sort an array using quick sort with 3-way partitioning. This variant handles duplicate elements more efficiently by partitioning the arr
src/sorting/python/quick_sort/src/quick_sort.py:58
↓ 10 callers
Function
selection_sort
Sort an array using the selection sort algorithm. This algorithm divides the input into a sorted and unsorted region, repeatedly selecti
src/sorting/python/selection_sort/src/selection_sort.py:8
↓ 10 callers
Function
selection_sort
src/sorting/cpp/selection_sort/src/selection_sort.cpp:8
↓ 10 callers
Method
size
src/graphs/cpp/graph/src/graph.cpp:123
↓ 10 callers
Method
visit
Visit a new URL, clearing forward history. Args: url: The URL to navigate to.
src/brain_teasers/python/design_browser_history/src/design_browser_history.py:19
↓ 9 callers
Method
back
src/brain_teasers/cpp/design_browser_history/src/browser_history.cpp:16
↓ 9 callers
Method
contains
src/graphs/cpp/graph/src/graph.cpp:105
↓ 9 callers
Method
enqueue
Add an element to the back of the queue.
src/collections_and_containers/python/simple_queue/src/simple_queue.py:18
next →
1–100 of 1,481, ranked by callers