Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VAR-solutions/Algorithms
/ functions
Functions
3,327 in github.com/VAR-solutions/Algorithms
⨍
Functions
3,327
◇
Types & classes
712
↓ 4 callers
Function
dist
(P1,P2)
Divide and Conquer/closest_points.py:9
↓ 4 callers
Function
edge
adjacency list of graph
Graphs/SPFA/shortest-path-faster-algorithm.cpp:11
↓ 4 callers
Method
empty?
data structures/stack/ruby/stack.rb:18
↓ 4 callers
Function
endsWith
Searching/binary search/c/test/catch.hpp:8714
↓ 4 callers
Function
enqueue
Function to add an item to the queue. It changes rear and size
data structures/queue/cpp/queue-implementation.cpp:36
↓ 4 callers
Function
fillMatrix
data structures/Matrix/cpp/main.cpp:7
↓ 4 callers
Function
find
Graphs/disjoint-sets/union-find.cpp:15
↓ 4 callers
Method
first
()
data structures/linked list/javascript/linkedList.js:15
↓ 4 callers
Method
game_won
Finds if game is won and updates self.winning_player
Recursive Algorithms/minimax/tic-tac-toe/tictactoe.py:72
↓ 4 callers
Method
getElapsedSeconds
Searching/binary search/c/test/catch.hpp:8691
↓ 4 callers
Method
getExpandedExpression
Searching/binary search/c/test/catch.hpp:8227
↓ 4 callers
Function
inOrder
Tree/AVLTree/AVL.cpp:165
↓ 4 callers
Method
includeSuccessfulResults
Searching/binary search/c/test/catch.hpp:4075
↓ 4 callers
Function
inorder
A utility function to do inorder traversal of BST
Tree/Binary Search Tree/tree_delete_node.cpp:21
↓ 4 callers
Function
insert
If not present, inserts key into trie If the key is prefix of trie node, just marks leaf node
data structures/trie/cpp/trie.cpp:34
↓ 4 callers
Method
insertNode
(self, u)
Graphs/bfs/python/bfs.py:5
↓ 4 callers
Method
insertm
(int x)
data structures/linked list/java/Circular Linked List/Circular_LL.java:25
↓ 4 callers
Function
leftleftZigZig
data structures/trie/c/AVL.c:62
↓ 4 callers
Function
log2
A utility function to find Log n in base 2
Combinatorial Game Theory/Minimax Algorithm/minimax.cpp:37
↓ 4 callers
Function
max
Dynamic Programming/knapsack/C/Knapsack.c:3
↓ 4 callers
Function
min
Searching/Fibonacci Search/fibonacci_search.c:4
↓ 4 callers
Function
monkeySort
(arr1)
Sorting/Bogosort/Python/bogosort.py:9
↓ 4 callers
Function
newNode
newNode() allocates a new node with the given data and NULL left and right pointers. */
data structures/trie/c/Binary_tree.c:10
↓ 4 callers
Function
newNode
newNode() allocates a new node with the given data and NULL left and right pointers. */
Graphs/BinaryTree/c/binary.c:13
↓ 4 callers
Function
new_list
* Retourne une nouvelle Liste * @return Une liste vide */
data structures/linked list/c/list.c:9
↓ 4 callers
Function
parent
calculates the root of each tree
Tree/MinimumSpanningTree/cpp/minspantree.cpp:19
↓ 4 callers
Function
performOptionalSelector
Searching/binary search/c/test/catch.hpp:1529
↓ 4 callers
Method
pop
(self)
data structures/stack/python/timeTravelStack.py:18
↓ 4 callers
Function
print
Sorting/Bucket Sort/C/bucket_sort.c:129
↓ 4 callers
Method
print
()
data structures/linked list/java/Circular Linked List/Circular_LL.java:5
↓ 4 callers
Method
print
Graphs/Minimum Spanning Tree/C++/data-structures/ArrayList.cpp:120
↓ 4 callers
Function
printArray
Sorting/Timsort/C/timsort.c:80
↓ 4 callers
Function
push
Function to push according to priority
heaps/priority queue/priority_queue.cpp:46
↓ 4 callers
Method
push
(self, x)
data structures/stack/python/timeTravelStack.py:14
↓ 4 callers
Method
push
(item)
data structures/stack/javascript/stack.js:8
↓ 4 callers
Method
push
(self, new_data)
data structures/linked list/python/linkedlist.py:18
↓ 4 callers
Method
push
(value int32)
data structures/linked list/go/linkedlistint32.go:15
↓ 4 callers
Function
que
data structures/stack/cpp/menu-driven-stack-and-queue.cpp:172
↓ 4 callers
Function
que_list
data structures/stack/cpp/menu-driven-stack-and-queue.cpp:369
↓ 4 callers
Function
query
(node, start, end, i, j int)
Tree/segment tree/golang/segmentTree.go:41
↓ 4 callers
Function
rightrightZigZig
data structures/trie/c/AVL.c:45
↓ 4 callers
Method
search
(self, corpus)
Other Algorithms/String/python/ahocorasick.py:70
↓ 4 callers
Method
search
(self, key)
data structures/trie/python/trie.py:52
↓ 4 callers
Function
sendPronto
+=============================================================================
Arduino_Code/Arduino-IRremote/irPronto.cpp:73
↓ 4 callers
Method
setPreviousElement
Graphs/Minimum Spanning Tree/C++/data-structures/LinkedListElement.cpp:34
↓ 4 callers
Function
shuffle
Sorting/Bogosort/C/Bogosort.c:13
↓ 4 callers
Method
start
Searching/binary search/c/test/catch.hpp:8682
↓ 4 callers
Function
stck
data structures/stack/cpp/menu-driven-stack-and-queue.cpp:94
↓ 4 callers
Function
stck_list
data structures/stack/cpp/menu-driven-stack-and-queue.cpp:265
↓ 4 callers
Method
swap
(T[] array, int pos0, int pos1)
Sorting/Heapsort/C Sharp/heapsort.cs:89
↓ 4 callers
Method
valueOr
Searching/binary search/c/test/catch.hpp:3192
↓ 4 callers
Method
what
Searching/binary search/c/test/catch.hpp:7684
↓ 3 callers
Function
Hashfunc
data structures/hash/hashfunctions.cpp:30
↓ 3 callers
Function
MATCH
+============================================================================= The match functions were (apparently) originally MACROs to improve code
Arduino_Code/Arduino-IRremote/IRremote.cpp:45
↓ 3 callers
Function
NewHuffmanTree
GenerateHuffmanTree generates a HuffmanTree based on the data passed in the parameter.
Greedy Algorithms/Huffman/go/huffman.go:56
↓ 3 callers
Method
V
(self)
Graphs/Bellman-ford/python/bellman.py:9
↓ 3 callers
Method
_nodeAtIndex
(index)
data structures/linked list/javascript/linkedList.js:145
↓ 3 callers
Method
add
(Object toAdd)
data structures/array/ArrayList.java:11
↓ 3 callers
Method
adj
(self, u)
Graphs/Bellman-ford/python/bellman.py:12
↓ 3 callers
Function
arcSafeRelease
Searching/binary search/c/test/catch.hpp:1526
↓ 3 callers
Function
binarySearch
location of x in given array arr[l..r] is present, otherwise -1
Searching/binary search/c/BS.c:8
↓ 3 callers
Method
clear
Graphs/Minimum Spanning Tree/C++/data-structures/LinkedGraph.cpp:24
↓ 3 callers
Method
clone
Searching/binary search/c/test/catch.hpp:4546
↓ 3 callers
Function
colour
Graphs/graph coloring/square_grid_multidim.cpp:4
↓ 3 callers
Method
commands
Searching/binary search/c/test/catch.hpp:4763
↓ 3 callers
Function
contains
Searching/binary search/c/test/catch.hpp:8720
↓ 3 callers
Method
count
()
heaps/JavaScript/heap.js:11
↓ 3 callers
Method
countWords
(String str)
Other Algorithms/CountWords.java:5
↓ 3 callers
Function
createNode
Graphs/bfs/c/bfs.c:70
↓ 3 callers
Function
criar_no
data structures/Red Black/CPP/arvore_rb_c.cpp:342
↓ 3 callers
Method
deQueue
Dequeue an item from the queue
data structures/queue/cpp/QueueUsingFunctionCallStack.cpp:16
↓ 3 callers
Method
deQueue
Dequeue an item from the queue
data structures/queue/cpp/QueueUsingTwoStacks.cpp:28
↓ 3 callers
Function
deleteAll
Searching/binary search/c/test/catch.hpp:424
↓ 3 callers
Function
deleteNode
data structures/trie/c/BST.c:51
↓ 3 callers
Function
deleteNode
Given a binary search tree and a key, this function deletes the key and returns the new root */
Tree/Binary Search Tree/tree_delete_node.cpp:63
↓ 3 callers
Method
dequeue
data structures/queue/ruby/queue.rb:17
↓ 3 callers
Method
display
()
LinkedList/LinkList.java:54
↓ 3 callers
Function
enQueue
data structures/queue/c/queue_using_stack.c:18
↓ 3 callers
Method
enQueue
Enqueue an item to the queue
data structures/queue/cpp/QueueUsingFunctionCallStack.cpp:10
↓ 3 callers
Method
enQueue
data structures/queue/cpp/QueueUsingTwoStacks.cpp:9
↓ 3 callers
Method
enqueue
(self, element)
data structures/queue/python/queue.py:6
↓ 3 callers
Function
filterTests
Searching/binary search/c/test/catch.hpp:7354
↓ 3 callers
Method
find
(int key)
LinkedList/LinkList.java:16
↓ 3 callers
Function
findMax
Returns index of the maximum element in arr[0..n-1]
Sorting/Pancake Sorting/php/pancake_sort.php:23
↓ 3 callers
Method
find_shortest_paths
(start)
Graphs/Dijkstra Algorithm/ruby/dijkstra.rb:13
↓ 3 callers
Function
findleft
Searching/binary search/cpp/RangeSearch.cpp:8
↓ 3 callers
Function
findright
Searching/binary search/cpp/RangeSearch.cpp:24
↓ 3 callers
Function
freeNode
data structures/linked list/cpp/doubly_circular_linked_list.cpp:18
↓ 3 callers
Method
game_over
Finds if current board_state is full and the game is over
Recursive Algorithms/minimax/tic-tac-toe/tictactoe.py:62
↓ 3 callers
Method
getResultCapture
IContext
Searching/binary search/c/test/catch.hpp:7806
↓ 3 callers
Method
getTestMacroName
Searching/binary search/c/test/catch.hpp:8238
↓ 3 callers
Method
get_data
(self)
data structures/linked list/python/Singly-linked-list.py:6
↓ 3 callers
Function
h
(f, y, x)
Hashing/Linear Probing/linear_probing.js:31
↓ 3 callers
Function
hashValue
Hashing/Linear Probing/linear_probing.cpp:6
↓ 3 callers
Method
indexOf
@param object the object you wish to know the index of @return the index of the object, or -1 if the object is not in the array
data structures/array/ArrayList.java:35
↓ 3 callers
Function
inorder
recursive function to perform inorder traversal of tree */
Tree/Binary Search Tree/bst.c:99
↓ 3 callers
Function
insert
Tree/Trie/Trie.cpp:53
↓ 3 callers
Method
insertNode
(self, u)
Graphs/Bellman-ford/python/bellman.py:5
↓ 3 callers
Method
isEdge
Método que verifica se é uma aresta @param v Nome do vértice de início (estação de partida) @param u Nome do vértice final (estação de destino) @retur
Graphs/Dijkstra Algorithm/Java/Grafo.java:80
↓ 3 callers
Function
isEmpty
Queue is empty when size is 0
data structures/queue/cpp/queue-implementation.cpp:31
← previous
next →
201–300 of 3,327, ranked by callers