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
↓ 1 callers
Method
back
Return the back element without removing it.
src/collections_and_containers/python/simple_queue/src/simple_queue.py:40
↓ 1 callers
Method
back
Return the last element.
src/collections_and_containers/python/vector/src/vector.py:45
↓ 1 callers
Method
clear
Remove all elements from the vector.
src/collections_and_containers/python/vector/src/vector.py:81
↓ 1 callers
Method
clear
Remove all elements from the tree.
src/collections_and_containers/python/avl_tree/src/avl_tree.py:86
↓ 1 callers
Method
clear
Remove all elements from the tree.
src/collections_and_containers/python/binary_search_tree/src/binary_search_tree.py:91
↓ 1 callers
Method
clear
Remove all elements from the list.
src/collections_and_containers/python/linked_list/src/linked_list.py:90
↓ 1 callers
Method
clear
Remove all elements from the tree.
src/collections_and_containers/python/red_black_tree/src/red_black_tree.py:106
↓ 1 callers
Method
clear
Remove all elements from the hash table.
src/collections_and_containers/python/hash_table/src/hash_table.py:60
↓ 1 callers
Method
clear
src/collections_and_containers/cpp/vector/src/vector.cpp:145
↓ 1 callers
Method
clear
src/collections_and_containers/cpp/avl_tree/src/avl_tree.cpp:56
↓ 1 callers
Method
clear
src/collections_and_containers/cpp/binary_search_tree/src/binary_search_tree.cpp:64
↓ 1 callers
Method
clear
src/collections_and_containers/cpp/linked_list/src/linked_list.cpp:121
↓ 1 callers
Method
clear
src/collections_and_containers/cpp/red_black_tree/src/red_black_tree.cpp:67
↓ 1 callers
Function
dfs
( G: Graph, v: int, colors: List[int], configuration: List[int] )
src/backtracking/python/k_colorable_configurations/src/k_colorable_configurations.py:48
↓ 1 callers
Function
dfs
( G: Graph, v: int, discovered: List[bool], departure: List[int], time
src/backtracking/python/topological_sort/src/topological_sort.py:41
↓ 1 callers
Function
dfs
( G: Graph, v: int, visited: List[bool], path: List[int] )
src/backtracking/python/hamiltonian_paths/src/hamiltonian_paths.py:45
↓ 1 callers
Method
edges
Return a list of all edges in the graph.
src/graphs/python/graph/src/graph.py:85
↓ 1 callers
Method
edges
Return a list of all edges in the graph.
src/graphs/python/kruskal/src/graph.py:85
↓ 1 callers
Method
edges
src/graphs/cpp/bellman_ford/src/graph.cpp:95
↓ 1 callers
Method
edges
src/graphs/cpp/kruskal/src/graph.cpp:98
↓ 1 callers
Method
edgesFromVertex
src/graphs/cpp/a_star/src/graph.cpp:110
↓ 1 callers
Method
edgesFromVertex
src/graphs/cpp/dijkstra/src/graph.cpp:88
↓ 1 callers
Method
edgesFromVertex
src/graphs/cpp/bfs/src/graph.cpp:88
↓ 1 callers
Method
edgesFromVertex
src/graphs/cpp/dfs/src/graph.cpp:88
↓ 1 callers
Method
edges_from_vertex
Return all edges originating from the given vertex.
src/graphs/python/a_star/src/graph.py:89
↓ 1 callers
Method
edges_from_vertex
Return all edges originating from the given vertex.
src/graphs/python/dijkstra/src/graph.py:89
↓ 1 callers
Method
edges_from_vertex
Return all edges originating from the given vertex.
src/graphs/python/bfs/src/graph.py:89
↓ 1 callers
Method
edges_from_vertex
Return all edges originating from the given vertex.
src/graphs/python/graph/src/graph.py:89
↓ 1 callers
Method
edges_from_vertex
Return all edges originating from the given vertex.
src/graphs/python/dfs/src/graph.py:89
↓ 1 callers
Method
empty
Check if the graph has no vertices.
src/graphs/python/graph/src/graph.py:113
↓ 1 callers
Method
empty
src/graphs/cpp/a_star/src/graph.cpp:149
↓ 1 callers
Method
empty
src/graphs/cpp/dijkstra/src/graph.cpp:127
↓ 1 callers
Method
empty
src/graphs/cpp/graph/src/graph.cpp:127
↓ 1 callers
Method
empty
src/graphs/cpp/kruskal/src/graph.cpp:130
↓ 1 callers
Method
expand
Double the capacity of the queue.
src/collections_and_containers/python/simple_queue/src/simple_queue.py:54
↓ 1 callers
Function
final_score
Calculate the final score of the game. Args: board: The game board. Returns: 1 if player -1 wins, -1 if player 1 wins,
src/backtracking/python/minimax/src/minimax.py:31
↓ 1 callers
Function
final_score
src/backtracking/cpp/minimax/src/minimax.cpp:45
↓ 1 callers
Method
find_min
Find the minimum value in the subtree rooted at p.
src/collections_and_containers/python/avl_tree/src/avl_tree.py:177
↓ 1 callers
Method
find_min
Find the minimum value in the subtree rooted at p.
src/collections_and_containers/python/red_black_tree/src/red_black_tree.py:217
↓ 1 callers
Function
find_tours
Recursively find all knight's tour solutions using backtracking. Args: board: The current state of the board. row: Current r
src/backtracking/python/knight_tour/src/knight_tour.py:25
↓ 1 callers
Function
find_tours
src/backtracking/cpp/knight_tour/src/knight_tour.cpp:37
↓ 1 callers
Method
front
Return the front element without removing it.
src/collections_and_containers/python/simple_queue/src/simple_queue.py:34
↓ 1 callers
Method
front
Return the first element.
src/collections_and_containers/python/vector/src/vector.py:39
↓ 1 callers
Function
game_over
Check if the game has ended. Args: board: The game board. Returns: True if the game is over (someone won or board is fu
src/backtracking/python/minimax/src/minimax.py:53
↓ 1 callers
Function
game_over
src/backtracking/cpp/minimax/src/minimax.cpp:60
↓ 1 callers
Function
getShuffledCopy
src/brain_teasers/cpp/randomize_array/src/randomize_array.h:31
↓ 1 callers
Method
grow
Double the capacity of the hash table.
src/collections_and_containers/python/hash_table/src/hash_table.py:79
↓ 1 callers
Function
heapify
(arr: List[T], curr: int, offset: int)
src/sorting/python/heap_sort/src/heap_sort.py:34
↓ 1 callers
Function
heapify
src/sorting/cpp/heap_sort/src/heap_sort.cpp:19
↓ 1 callers
Method
in_order_traversal
Return elements in in-order traversal (left, root, right).
src/collections_and_containers/python/avl_tree/src/avl_tree.py:108
↓ 1 callers
Method
in_order_traversal
Return elements in in-order traversal (left, root, right).
src/collections_and_containers/python/red_black_tree/src/red_black_tree.py:128
↓ 1 callers
Method
insert_before
Insert a new node with the given value before the given node.
src/brain_teasers/python/bst_to_list/src/bst_to_list.py:38
↓ 1 callers
Method
isMaxHeap
src/collections_and_containers/cpp/heap/src/heap.cpp:84
↓ 1 callers
Method
isMinHeap
src/collections_and_containers/cpp/heap/src/heap.cpp:86
↓ 1 callers
Method
is_max_heap
Check if this is a max-heap.
src/collections_and_containers/python/heap/src/heap.py:50
↓ 1 callers
Method
is_min_heap
Check if this is a min-heap.
src/collections_and_containers/python/heap/src/heap.py:54
↓ 1 callers
Function
kruskal
src/graphs/cpp/kruskal/src/kruskal.cpp:7
↓ 1 callers
Function
merge
(x: Vertex, y: Vertex)
src/graphs/python/kruskal/src/kruskal.py:29
↓ 1 callers
Function
merge
(array_a: List[T], array_b: List[T])
src/sorting/python/merge_sort/src/merge_sort.py:25
↓ 1 callers
Function
merge
src/sorting/cpp/merge_sort/src/merge_sort.cpp:17
↓ 1 callers
Function
merge_sort_impl
src/sorting/cpp/merge_sort/src/merge_sort.cpp:55
↓ 1 callers
Function
minimax
Evaluate the game state using the minimax algorithm. Args: board: The current game board. player: The current player (-1 or
src/backtracking/python/minimax/src/minimax.py:74
↓ 1 callers
Function
minimax
src/backtracking/cpp/minimax/src/minimax.cpp:76
↓ 1 callers
Function
partition
(arr: List[T], start: int, stop: int)
src/sorting/python/quick_sort/src/quick_sort.py:26
↓ 1 callers
Method
post_order_traversal
Return elements in post-order traversal (left, right, root).
src/collections_and_containers/python/avl_tree/src/avl_tree.py:132
↓ 1 callers
Method
post_order_traversal
Return elements in post-order traversal (left, right, root).
src/collections_and_containers/python/binary_search_tree/src/binary_search_tree.py:141
↓ 1 callers
Method
post_order_traversal
Return elements in post-order traversal (left, right, root).
src/collections_and_containers/python/red_black_tree/src/red_black_tree.py:154
↓ 1 callers
Method
post_order_traversal
src/collections_and_containers/cpp/avl_tree/src/avl_tree.cpp:76
↓ 1 callers
Method
post_order_traversal
src/collections_and_containers/cpp/binary_search_tree/src/binary_search_tree.cpp:92
↓ 1 callers
Method
post_order_traversal
src/collections_and_containers/cpp/red_black_tree/src/red_black_tree.cpp:91
↓ 1 callers
Method
pre_order_traversal
Return elements in pre-order traversal (root, left, right).
src/collections_and_containers/python/avl_tree/src/avl_tree.py:120
↓ 1 callers
Method
pre_order_traversal
Return elements in pre-order traversal (root, left, right).
src/collections_and_containers/python/binary_search_tree/src/binary_search_tree.py:128
↓ 1 callers
Method
pre_order_traversal
Return elements in pre-order traversal (root, left, right).
src/collections_and_containers/python/red_black_tree/src/red_black_tree.py:141
↓ 1 callers
Method
pre_order_traversal
src/collections_and_containers/cpp/avl_tree/src/avl_tree.cpp:70
↓ 1 callers
Method
pre_order_traversal
src/collections_and_containers/cpp/binary_search_tree/src/binary_search_tree.cpp:85
↓ 1 callers
Method
pre_order_traversal
src/collections_and_containers/cpp/red_black_tree/src/red_black_tree.cpp:84
↓ 1 callers
Function
prim
src/graphs/cpp/prim/src/prim.cpp:7
↓ 1 callers
Method
push_front
src/collections_and_containers/cpp/linked_list/src/linked_list.cpp:46
↓ 1 callers
Function
quick_sort_impl
src/sorting/cpp/quick_sort/src/quick_sort.cpp:18
↓ 1 callers
Method
remove
Remove a value from the tree.
src/collections_and_containers/python/avl_tree/src/avl_tree.py:44
↓ 1 callers
Method
remove
Remove a value from the tree.
src/collections_and_containers/python/red_black_tree/src/red_black_tree.py:65
↓ 1 callers
Method
remove
src/collections_and_containers/cpp/binary_search_tree/src/binary_search_tree.cpp:34
↓ 1 callers
Method
shrink
Halve the capacity of the hash table.
src/collections_and_containers/python/hash_table/src/hash_table.py:93
↓ 1 callers
Method
size
Return the number of elements in the queue.
src/collections_and_containers/python/simple_queue/src/simple_queue.py:46
↓ 1 callers
Method
size
Return the number of elements in the stack.
src/collections_and_containers/python/stack/src/stack.py:44
↓ 1 callers
Method
size
src/collections_and_containers/cpp/stack/src/stack.cpp:60
↓ 1 callers
Method
size
src/collections_and_containers/cpp/queue/src/queue.cpp:80
↓ 1 callers
Method
size
Return the number of vertices in the graph.
src/graphs/python/bellman_ford/src/graph.py:117
↓ 1 callers
Method
top
Return the top element without removing it.
src/collections_and_containers/python/stack/src/stack.py:38
↓ 1 callers
Function
transform_tour
Transform a list of tour positions into a grid of move numbers. Args: tour: List of (row, col) positions representing the knight's p
src/backtracking/python/knight_tour/src/knight_tour.py:4
↓ 1 callers
Function
transform_tour
src/backtracking/cpp/knight_tour/src/knight_tour.cpp:17
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/a_star/src/graph.py:81
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/bellman_ford/src/graph.py:81
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/dijkstra/src/graph.py:81
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/prim/src/graph.py:81
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/bfs/src/graph.py:81
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/graph/src/graph.py:81
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/dfs/src/graph.py:81
↓ 1 callers
Method
vertices
Return a list of all vertices in the graph.
src/graphs/python/kruskal/src/graph.py:81
↓ 1 callers
Method
vertices
src/graphs/cpp/a_star/src/graph.cpp:100
← previous
next →
401–500 of 1,481, ranked by callers