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
Method
addToBack
(int value)
LinkedList/Java/LinkedList.java:29
↓ 1 callers
Function
addafterlist
LinkedList/C++/doublyLinkedList.cpp:183
↓ 1 callers
Function
addatbeglist
LinkedList/C++/doublyLinkedList.cpp:146
↓ 1 callers
Function
addbeforelist
LinkedList/C++/doublyLinkedList.cpp:206
↓ 1 callers
Method
advanceGeneratorsForCurrentTest
Searching/binary search/c/test/catch.hpp:7817
↓ 1 callers
Function
algoAllPairs
(cost, A, n)
Dynamic Programming/floyd-warshall/allpairs.py:4
↓ 1 callers
Method
all
Searching/binary search/c/test/catch.hpp:5937
↓ 1 callers
Method
allOk
Searching/binary search/c/test/catch.hpp:2371
↓ 1 callers
Method
allSubsets
(int[] array, int n)
Bit Manipulation/GeneratingEverySubsetWithBitmask/java/EverySubset.java:34
↓ 1 callers
Method
allowThrows
Searching/binary search/c/test/catch.hpp:9293
↓ 1 callers
Function
alwaysTrue
Searching/binary search/c/test/catch.hpp:479
↓ 1 callers
Method
aniket
()
Combinatorial Game Theory/Tic-Tac-Toe Optimal Move/Java/MyApp.java:12
↓ 1 callers
Function
applyFilenamesAsTags
Searching/binary search/c/test/catch.hpp:7096
↓ 1 callers
Function
argsToVector
Searching/binary search/c/test/catch.hpp:4614
↓ 1 callers
Function
artNbridge
Graphs/Finding Articulation Points and bridges/cpp/Finding Articulation Points and bridges.cpp:17
↓ 1 callers
Method
assertionPassed
Searching/binary search/c/test/catch.hpp:6764
↓ 1 callers
Method
assertionRun
Searching/binary search/c/test/catch.hpp:6771
↓ 1 callers
Method
assertionStarting
Searching/binary search/c/test/catch.hpp:8599
↓ 1 callers
Function
astar
(maze, start, end)
Other Algorithms/AStar/astar.py:15
↓ 1 callers
Function
astar
Returns a list of tuples as a path from the given start to the given end in the given maze
Graphs/A star pathfinding algorithm/Astar.py:26
↓ 1 callers
Method
bellman_ford
(self, start)
Graphs/Bellman-ford/python/bellman.py:72
↓ 1 callers
Function
bfs
Returns true if there is a path from source 's' to sink 't' in residual graph. Also fills parent[] to store the path */
Greedy Algorithms/ford-fulkerson.cpp:12
↓ 1 callers
Function
bfs
(graph,source)
data structures/Graph/GraphBFS.py:30
↓ 1 callers
Function
bfs
Graphs/SPFA/shortest-path-faster-algorithm.cpp:22
↓ 1 callers
Function
bfs
Returns true if there is a path from source 's' to sink 't' in residual graph. Also fills parent[] to store the path */
Graphs/ford-fulkerson/max_flow.cpp:12
↓ 1 callers
Function
bfs
( start )
Graphs/bfs/javascript/bfs.js:14
↓ 1 callers
Function
bfs
(start int, nodes map[int][]int, fn func (int))
Graphs/bfs/go/bfs.go:27
↓ 1 callers
Function
bfs
Graphs/bfs/c/bfs.c:46
↓ 1 callers
Method
bfs
(int rGraph[][], int s, int t, int parent[])
Graphs/FordMaxFlow.java:14
↓ 1 callers
Method
bfs
()
Graphs/bfs/java/bfs.java:31
↓ 1 callers
Function
bfs_frontier
(node int, nodes map[int][]int, visited map[int]bool)
Graphs/bfs/go/bfs.go:45
↓ 1 callers
Function
binary
Other Algorithms/conversion.cpp:18
↓ 1 callers
Function
binarySearch
Dynamic Programming/WeightedJobScheduling/cpp/weighted_job_scheduling.cpp:15
↓ 1 callers
Function
binarySearch
(A,num,l,r)
Searching/binary search/python/binarySearch.py:1
↓ 1 callers
Function
binarySearch
Binary Search
Searching/binary search/go/binarySearch.go:5
↓ 1 callers
Method
binarySearch
Returns index of x if it is present in arr, otherwise -1
Graphs/BinaryTree/kotlin/binaryKotlin.kt:4
↓ 1 callers
Function
binary_search
(the_array, item, start, end)
Sorting/Timsort/Python/TimSort.py:5
↓ 1 callers
Function
binary_search
(v : &Vec<i32>, value : i32)
Searching/binary search/rust/binary_search.rs:1
↓ 1 callers
Function
binary_search
(a, n, x)
Searching/binary search/Ruby/binSearch.rb:1
↓ 1 callers
Method
bindProcessName
Searching/binary search/c/test/catch.hpp:4930
↓ 1 callers
Function
binomialCoef
(n, k)
Dynamic Programming/Binomial Coefficient/Python/binCoeff.py:1
↓ 1 callers
Function
binomialCoeff
Returns value of Binomial Coefficient C(n, k)
Mathematics/catalan_no/cpp/catalan.cpp:5
↓ 1 callers
Function
binomialCoeff
(n, k)
Mathematics/NChooseK/python/recursive-binomial.py:1
↓ 1 callers
Function
binomialCoeff
(n, k)
Mathematics/NChooseK/python/dp-binomial.py:1
↓ 1 callers
Function
binomialCoeff
Returns value of Binomial Coefficient C(n, k)
Mathematics/NChooseK/cpp/NChooseK.cpp:7
↓ 1 callers
Function
binomialCoeff
Dynamic Programming/Binomial Coefficient/C/binCoeff.c:5
↓ 1 callers
Method
binomialCoeff
(int n, int k)
Dynamic Programming/Binomial Coefficient/Java/BinCoeff.java:2
↓ 1 callers
Function
binomialCoefficient
(n, k)
Mathematics/catalan_no/python/catalan.py:4
↓ 1 callers
Method
bogoSort
(int[] a)
Sorting/Bogosort/Java/Bogosort.java:5
↓ 1 callers
Function
bogosort
(ary)
Sorting/Bogosort/Ruby/bogosort.rb:10
↓ 1 callers
Function
brute_force
(a)
Divide and Conquer/closest_points.py:17
↓ 1 callers
Function
bubble_Sort
Sorting/Bubble Sort/CPP/bubble_sort.cpp:11
↓ 1 callers
Function
bubble_sort
(list)
Sorting/Bubble Sort/Javascript/bubble_sort.js:9
↓ 1 callers
Function
bubble_sort
(array: &mut [T])
Sorting/Bubble Sort/Rust/bubble_sort.rs:1
↓ 1 callers
Function
bubble_sort
($array)
Sorting/Bubble Sort/PHP/bubble-sort.php:3
↓ 1 callers
Function
bubble_sort
(arr)
Sorting/Bubble Sort/Python/bubble_sort.py:5
↓ 1 callers
Function
bubble_sort
Sorting/Bubble Sort/C/bubble_sort.c:11
↓ 1 callers
Function
bubble_sort
(array)
Sorting/Bubble Sort/Ruby/bubble_sort.rb:1
↓ 1 callers
Function
bubble_sort_recursively
(arr, i=0, j=0)
Sorting/Bubble Sort/Python/bubble_sort_recursively.py:1
↓ 1 callers
Function
bubblesort
(a sort.Interface)
Sorting/Bubble Sort/Go/bubble_sort.go:16
↓ 1 callers
Function
bucketSort
(list, size)
Sorting/Bucket Sort/Javascript/bucket_sort.js:14
↓ 1 callers
Function
bucketSort
Sorting/Bucket Sort/C++/bucket_sort.cpp:8
↓ 1 callers
Method
bucketSort
(int[] a)
Sorting/Bucket Sort/Java/bucket_sort.java:5
↓ 1 callers
Function
bucketsort
Sorting function
Sorting/Bucket Sort/C/bucket_sort.c:27
↓ 1 callers
Method
build
Searching/binary search/c/test/catch.hpp:9295
↓ 1 callers
Function
buildTree
(node, start, end int)
Tree/segment tree/golang/segmentTree.go:16
↓ 1 callers
Method
buildTree
(int[] a, int[] tree, int index, int si, int ei)
Tree/segment tree/Java/RangeMinQuery.java:22
↓ 1 callers
Function
build_ST
Tree/segment tree/c/segment_tree.c:28
↓ 1 callers
Method
build_tree
(self, nums, l, r)
Tree/segment tree/python/segment_tree.py:19
↓ 1 callers
Function
calcDist
Problem specific, not part of decomposition.
Tree/Centroid Decomposition/C++/centroid-decomposition.cpp:53
↓ 1 callers
Function
calcSubtreeSize
Tree/Centroid Decomposition/C++/centroid-decomposition.cpp:29
↓ 1 callers
Function
calculate
Other Algorithms/Second-Max-Min-in-SubArray/second-max-min.cpp:5
↓ 1 callers
Function
calculateGrundy
A function to Compute Grundy Number of 'n' Only this function varies according to the game
Combinatorial Game Theory/Grundy Numbers/grundyNum.cpp:24
↓ 1 callers
Function
calculateGrundy
A function to Compute Grundy Number of 'n'
Combinatorial Game Theory/Sprague-Grundy Theorem/sprague.cpp:28
↓ 1 callers
Method
calculateHash
(self)
Blockchain/blockchain_algorithm.py:11
↓ 1 callers
Function
calculateMex
A Function to calculate Mex of all the values in that set.
Combinatorial Game Theory/Grundy Numbers/grundyNum.cpp:12
↓ 1 callers
Function
calculateMex
A Function to calculate Mex of all the values in that set
Combinatorial Game Theory/Sprague-Grundy Theorem/sprague.cpp:17
↓ 1 callers
Function
calculate_lps
(pat string, m int, lps []int)
Other Algorithms/KMP/golang/kmp.go:15
↓ 1 callers
Function
canCompleteCircuit
Greedy Algorithms/Gas Station/containerShip.cpp:4
↓ 1 callers
Function
catalan
(n)
Mathematics/catalan_no/python/catalan.py:22
↓ 1 callers
Function
catalan
A Binomial coefficient based function to find nth catalan number in O(n) time
Mathematics/catalan_no/cpp/catalan.cpp:25
↓ 1 callers
Function
centroidDecomp
Tree/Centroid Decomposition/C++/centroid-decomposition.cpp:65
↓ 1 callers
Function
checkBipartite
Graphs/check bipartite/cpp/CheckBipartite.cpp:26
↓ 1 callers
Function
checkParent
(str)
Other Algorithms/checkParent.js:3
↓ 1 callers
Function
choose_pivot
data structures/quick.cpp:38
↓ 1 callers
Function
cleanUp
Searching/binary search/c/test/catch.hpp:7658
↓ 1 callers
Function
cleanUpContext
Searching/binary search/c/test/catch.hpp:7879
↓ 1 callers
Function
closest
(a)
Divide and Conquer/closest_points.py:42
↓ 1 callers
Method
cocktailSort
(int a[])
Sorting/Cocktail/cocktail.java:2
↓ 1 callers
Function
cocktailsort
Sorting/Cocktail/C/Cocktail.c:11
↓ 1 callers
Function
codes
Greedy Algorithms/Huffman/cpp/huffmanInCPP.cpp:38
↓ 1 callers
Function
coinChange
Dynamic Programming/coin change/cpp/CoinChangeDP.cpp:7
↓ 1 callers
Function
combSort
Comb Sort
Sorting/Comb Sort/Go/combSort.go:28
↓ 1 callers
Function
combineLeafs
combineLeafs combines two trees into a single new one without a value. Note that we intentionally pass parameters by value to have 'fresh' trees.
Greedy Algorithms/Huffman/go/huffman.go:77
↓ 1 callers
Function
combsort
(array, shrink = 1.247330950103979)
Sorting/Comb Sort/Ruby/comb_sort.rb:11
↓ 1 callers
Function
compare
Searching/binary search/c/test/catch.hpp:1382
↓ 1 callers
Method
compare
+============================================================================= hashdecode - decode an arbitrary IR code. Instead of decoding using a s
Arduino_Code/Arduino-IRremote/irRecv.cpp:201
↓ 1 callers
Function
compute
( a, b)
Mathematics/harmonic mean/python/Harmonic-Mean.py:9
↓ 1 callers
Function
computeHash
Computes the hash value of a given board
Combinatorial Game Theory/Zobrist Hashing/zobrist.cpp:59
↓ 1 callers
Function
computeLPSArray
(pat, M, lps)
Other Algorithms/KMP/pyhton/kmpsearch.py:24
← previous
next →
701–800 of 3,327, ranked by callers