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
↓ 1 callers
Function
merge_sort
Sorting/Merge Sort/C/merge_sort.c:20
↓ 1 callers
Function
min
Dynamic Programming/GameStrategy/MinimumNumberOfJumps.cpp:4
↓ 1 callers
Method
min
(int a, int b)
Dynamic Programming/Binomial Coefficient/Java/BinCoeff.java:20
↓ 1 callers
Function
minDistance
A utility function to find the vertex with minimum distance value, from the set of vertices not yet included in shortest path tree
Graphs/Dijkstra Algorithm/cpp/dijkstra.cpp:9
↓ 1 callers
Method
minDistance
(self, dist, sptSet)
Graphs/Dijkstra Algorithm/python/dijkstra.py:14
↓ 1 callers
Function
minJumps
Dynamic Programming/GameStrategy/MinimumNumberOfJumps.cpp:6
↓ 1 callers
Function
minKey
Greedy Algorithms/prims.c:7
↓ 1 callers
Function
minKey
A utility function to find the vertex with minimum key value, from the set of vertices not yet included in MST
Graphs/Minimum Spanning Tree/C/mst-prims.c:13
↓ 1 callers
Method
minKey
(int key[], Boolean mstSet[])
Graphs/Minimum Spanning Tree/java/MST.java:12
↓ 1 callers
Method
minKey
(int key[], Boolean mstSet[])
Graphs/Prims Algorithm/Java/PrimsAlgorithm.java:12
↓ 1 callers
Method
minNode
(ElementBST node)
Tree/Binary Search Tree/bst.java:85
↓ 1 callers
Function
minQuery
Tree/segment tree/cpp/segmentTree.cpp:18
↓ 1 callers
Method
minValue
(self, tree)
Tree/Binary Search Tree/bstree.py:233
↓ 1 callers
Function
minValueNode
Given a non-empty binary search tree, return the node with minimum key value found in that tree. Note that the entire tree does not need to be
Tree/Binary Search Tree/tree_delete_node.cpp:50
↓ 1 callers
Function
min_rod_cutting_cost
(p, n)
Dynamic Programming/Cutting Rod/python/cutting_rod.py:2
↓ 1 callers
Method
mineBlock
(self, data)
Blockchain/blockchain_algorithm.py:22
↓ 1 callers
Function
minimax
Combinatorial Game Theory/Tic-Tac-Toe Optimal Move/tttoptmove.cpp:66
↓ 1 callers
Function
minimax
Combinatorial Game Theory/Tic-Tac-Toe Optimal Move/Cpp/Tic-Tac-Toe.cpp:66
↓ 1 callers
Function
minimax
Combinatorial Game Theory/Alpha-Beta Pruning/alphabeta.cpp:9
↓ 1 callers
Function
minimax
Returns the optimal value a maximizer can obtain. depth is current depth in game tree. nodeIndex is index of current node in scores[]. isMax is true i
Combinatorial Game Theory/Minimax Algorithm/minimax.cpp:14
↓ 1 callers
Method
minimax
(int depth, int nodeIndex, Boolean maximizingPlayer, int values[], int alpha, int beta)
Combinatorial Game Theory/Alpha-Beta Pruning/AlphaBetaPruning.java:9
↓ 1 callers
Method
minimax
Minimax solution to selecting what to play
Recursive Algorithms/minimax/tic-tac-toe/tictactoe.py:143
↓ 1 callers
Method
minimum
Tree/AVLTree/AVL.cpp:283
↓ 1 callers
Function
mirror
Tree/Binary Search Tree/binary_tree_mirror.cpp:36
↓ 1 callers
Function
mod
Mathematics/GCD/cpp/GCDlarge.cpp:20
↓ 1 callers
Function
modInv
(a int, m int)
Mathematics/modularInverse/go/src/main.go:18
↓ 1 callers
Function
modify
Tree/segment tree/cpp/EfficientSingleElementModification.cpp:9
↓ 1 callers
Method
multiply
(int x, int res[], int res_size)
Mathematics/Power_For_Huge_Num/Power_Huge.java:16
↓ 1 callers
Function
multiplyNumbers
Recursive Algorithms/Factorial.c:12
↓ 1 callers
Function
murmur3Hash
(keyBytes []byte)
data structures/Bloom Filter/bloomfilter.go:87
↓ 1 callers
Method
negate
Searching/binary search/c/test/catch.hpp:963
↓ 1 callers
Function
newNode
A utility function to create a new BST node
Tree/Binary Search Tree/tree_delete_node.cpp:12
↓ 1 callers
Function
newNode
Helper function that allocates a new node with the given key and NULL left and right pointers. */
Tree/AVLTree/AVL_Tree.cpp:33
↓ 1 callers
Function
newNode
Tree/AVLTree/AVL.cpp:21
↓ 1 callers
Function
newnode
data structures/trie/c/AVL.c:34
↓ 1 callers
Function
next2pow
(n int)
Bit Manipulation/next power of 2/go/nextPowerOf2.go:7
↓ 1 callers
Function
nextPowOf2
(n)
Bit Manipulation/next power of 2/python/nextpowOf2.py:1
↓ 1 callers
Function
nextPowerOf2
function to calculate power of 2
Bit Manipulation/next power of 2/cpp/nextPowerof2.cpp:5
↓ 1 callers
Method
noMatchingTestCases
Searching/binary search/c/test/catch.hpp:8586
↓ 1 callers
Method
nodeAtPosition
(int p)
data structures/linked list/java/Circular Linked List/Circular_LL.java:45
↓ 1 callers
Function
non_recursive_binary_search
(a,n,e)
Searching/binary search/python/binarySearch.py:15
↓ 1 callers
Function
octal
Other Algorithms/conversion.cpp:30
↓ 1 callers
Function
optCost
Tree/OptimalBST.c:6
↓ 1 callers
Function
optimalSearchTree
Tree/OptimalBST.c:38
↓ 1 callers
Function
order_pass
Graphs/Kosaraju ALgorithm/Kosaraju_ALgorithm.cpp:68
↓ 1 callers
Function
palindrome
Mathematics/palindrome/c/palindrome.c:12
↓ 1 callers
Function
pancakeSort
The main function that sorts given array using flip operations
Sorting/Pancake Sorting/php/pancake_sort.php:35
↓ 1 callers
Function
pancakeSort
The main function that sorts given array using flip operations
Sorting/Pancake Sorting/CPP/pancake_sort.cpp:36
↓ 1 callers
Function
pancakeSort
Pancake Sort
Sorting/Pancake Sorting/Go/pancakeSort.go:28
↓ 1 callers
Method
pancakeSort
(int arr[], int n)
Sorting/Pancake Sorting/Java/pancake_sorting.java:38
↓ 1 callers
Method
pancake_sort!
Sorting/Pancake Sorting/Ruby/pancakeSort.rb:2
↓ 1 callers
Method
parseInto
Searching/binary search/c/test/catch.hpp:5015
↓ 1 callers
Method
parseIntoTokens
Searching/binary search/c/test/catch.hpp:4638
↓ 1 callers
Method
parseProblem
(String[] args)
Backtracking/Sudoku solution/Java/Sudoku.java:51
↓ 1 callers
Function
partition
(arr: &mut [T], low: isize, high: isize)
Sorting/quickSort/Rust/quick-sort.rs:14
↓ 1 callers
Function
partition
Sorting/quickSort/C++/quick_sort.cpp:6
↓ 1 callers
Function
partition
Sorting/quickSort/C/quick_sort.c:12
↓ 1 callers
Function
partition
(array, low, high)
Sorting/quickSort/Ruby/quick_sort.rb:1
↓ 1 callers
Function
partition2
(a, l, r)
Sorting/quickSort/python/quick_sort_2.py:3
↓ 1 callers
Function
partition3
(a, l, r)
Sorting/quickSort/python/quick_sort_randomized.py:3
↓ 1 callers
Function
partition3
Sorting/quickSort/C++/quick_sort_randomized.cpp:6
↓ 1 callers
Function
partition_
Linear time partition algo
Selection Algorithms/Quick_Select/cpp/quick_select.cpp:6
↓ 1 callers
Function
pathFinder
()
Searching/8-puzzleProblem/8-puzzleProblem.py:223
↓ 1 callers
Function
patience_sort
Sorting/Patience Sorting/C++/patience_sorting.cpp:24
↓ 1 callers
Function
patience_sort
(array)
Sorting/Patience Sorting/Python3/patience_sort.py:11
↓ 1 callers
Function
peek
data structures/stack/c/stack_using_linkedList.c:36
↓ 1 callers
Function
peek
data structures/queue/c/queue_using_array.c:57
↓ 1 callers
Function
peek
data structures/queue/c/queue_using_linkedList.c:48
↓ 1 callers
Method
peek
(self)
data structures/Graph/GraphDFS(Letters).py:19
↓ 1 callers
Method
peek
data structures/queue/Kotlin/QueueUsingArray.kt:23
↓ 1 callers
Method
peek
(Node head)
heaps/priority queue/priority_queue.java:34
↓ 1 callers
Function
permuta
Backtracking/Permutation/permuta.cpp:10
↓ 1 callers
Method
permutation
(String input)
Other Algorithms/String/java/StringPermutations.java:16
↓ 1 callers
Function
permute
Other Algorithms/All_permutations_of_a_string.cpp:24
↓ 1 callers
Function
phoneCheck
(str)
Other Algorithms/phoneCheck.js:4
↓ 1 callers
Function
pigeonholeSort
Sorts the array using pigeonhole algorithm */
Sorting/pigeonholesort.cpp:9
↓ 1 callers
Function
pigeonhole_sort
(a)
Sorting/pigeonhole/pigeonhole_sorting.py:5
↓ 1 callers
Function
platformColourInstance
Searching/binary search/c/test/catch.hpp:7977
↓ 1 callers
Method
play
(self)
Recursive Algorithms/minimax/tic-tac-toe/tictactoe.py:100
↓ 1 callers
Function
playGame
A C function to play the Game of Nim
Combinatorial Game Theory/Game of NIM/gameNIM.c:133
↓ 1 callers
Function
politness
( n)
Mathematics/politeness of number/python/politeness_of_number.py:38
↓ 1 callers
Function
pop
data structures/stack/c/stack_in_c.c:153
↓ 1 callers
Function
pop
data structures/stack/c/stack.c:36
↓ 1 callers
Function
pop
data structures/stack/c/stack_using_linkedList.c:21
↓ 1 callers
Method
pop
data structures/stack/cpp/stack-implementation.cpp:36
↓ 1 callers
Method
pop
(Node head)
heaps/priority queue/priority_queue.java:41
↓ 1 callers
Method
pop
Dequeue the top element of the heap @returns : value of the top element
heaps/BinomialHeap/Python/binomial_heap.py:125
↓ 1 callers
Method
popScopedMessage
Searching/binary search/c/test/catch.hpp:6833
↓ 1 callers
Function
pop_front_list
* Supprime un entier de la tête de la Liste * @param li La liste * @return La liste sans l'élément retiré */
data structures/linked list/c/list.c:187
↓ 1 callers
Function
pos
Searching/Linear Search/linearSearch.cpp:3
↓ 1 callers
Function
posdel
Function to delete at a position
LinkedList/C/linkedList.c:108
↓ 1 callers
Function
posins
Function to insert at a position
LinkedList/C/linkedList.c:43
↓ 1 callers
Function
postOrder
Tree/AVLTree/AVL.cpp:175
↓ 1 callers
Function
postOrder
Tree/Traverals/CPP/postOrder.cpp:12
↓ 1 callers
Method
post_order
(node=@root, &block)
Tree/Binary Search Tree/Ruby/bst.rb:45
↓ 1 callers
Method
postorder
* Postorder Traversal */
Tree/Binary Search Tree/Binary_Search_Tree.cpp:338
↓ 1 callers
Method
postorders
(Node root)
Tree/Traverals/JAVA/postorder.java:35
↓ 1 callers
Function
power
Mathematics/power/cpp/power.cpp:6
↓ 1 callers
Function
power
Mathematics/fibonacci/cpp/matrix_fibo.cpp:7
↓ 1 callers
Function
power
(x, y, p)
Mathematics/modular exp/python/ModularExp.py:8
← previous
next →
1,301–1,400 of 3,327, ranked by callers