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
↓ 2 callers
Function
addtoemptylist
LinkedList/C++/doublyLinkedList.cpp:136
↓ 2 callers
Method
adj
(self, u)
Graphs/bfs/python/bfs.py:12
↓ 2 callers
Method
adj
(self, u)
Graphs/bfs/python/bfs.py:56
↓ 2 callers
Method
allPassed
Searching/binary search/c/test/catch.hpp:2368
↓ 2 callers
Method
append
(...elements)
data structures/linked list/javascript/linkedList.js:27
↓ 2 callers
Function
armstrongNumber
(num)
Mathematics/Armstrong_no/javascript/armstrong.js:7
↓ 2 callers
Function
begdel
Function to delete at beginning
LinkedList/C/linkedList.c:82
↓ 2 callers
Function
begins
Function to insert at beginning
LinkedList/C/linkedList.c:12
↓ 2 callers
Method
best_move
(self, game)
Recursive Algorithms/minimax/tic-tac-toe/tictactoe.py:191
↓ 2 callers
Method
bfs
(self, start)
Graphs/bfs/python/bfs.py:24
↓ 2 callers
Method
binarySearch
(int arr[], int l, int r, int x)
Searching/binary search/java/BinarySearchRe.java:6
↓ 2 callers
Function
bogosort
Sorting/Bogosort/C/Bogosort.c:24
↓ 2 callers
Function
bound
Branch And Bound/0_1 Knapsack/CPP/0_1Knapsack.cpp:23
↓ 2 callers
Function
buildMaxHeap
(arr)
Sorting/Heapsort/Javascript/heapsort.js:49
↓ 2 callers
Function
calculateNimSum
A C function to calculate the Nim-Sum at any point of the game.
Combinatorial Game Theory/Game of NIM/gameNIM.c:65
↓ 2 callers
Method
caseSensitivitySuffix
Searching/binary search/c/test/catch.hpp:9410
↓ 2 callers
Method
completeCycle
Searching/binary search/c/test/catch.hpp:6122
↓ 2 callers
Method
completedCycle
Searching/binary search/c/test/catch.hpp:6126
↓ 2 callers
Function
countSort
Count sort of arr[].
Sorting/Radix Sort/C++/radix_sort.cpp:16
↓ 2 callers
Function
counting_sort
Counting sort `arr` - Collection of value to be sorted in place. `min` - Lower bound of the integer range. `max` - Upper bound of the integer range. `
Sorting/Counting Sort/Rust/counting-sort.rs:11
↓ 2 callers
Method
counting_sort
Sorting/Counting Sort/Ruby/countSort.rb:6
↓ 2 callers
Function
createNode
Graphs/dfs/c/dfs.c:50
↓ 2 callers
Method
delete
(Tip e)
Tree/Binary Search Tree/bst.java:51
↓ 2 callers
Method
dequeue
(self)
data structures/queue/python/queue.py:9
↓ 2 callers
Function
dfs
Graphs/Kosaraju ALgorithm/Kosaraju_ALgorithm.cpp:46
↓ 2 callers
Function
dfs
(actual int)
Graphs/dfs/go/dfs.go:10
↓ 2 callers
Function
dijkstra
(edges, f, t)
Graphs/Dijkstra Algorithm/python/Dijkastra's_algo.py:4
↓ 2 callers
Function
display
displaying the elements of the list
LinkedList/Reverse/Reversal_of_Single_Linked_List/C/iterative_reversal.c:54
↓ 2 callers
Function
display
data structures/linked list/cpp/singly_reversed_linked_list.cpp:28
↓ 2 callers
Method
display
()
data structures/queue/java/queue.java:40
↓ 2 callers
Method
display
()
Tree/segment tree/Java/SegmentTree.java:35
↓ 2 callers
Function
displayDLL
data structures/linked list/c/linked list.c:150
↓ 2 callers
Function
displaySLL
data structures/linked list/c/linked list.c:77
↓ 2 callers
Function
down_adjust
Sorting/Heapsort/C/Heapsort.c:45
↓ 2 callers
Method
endExpression
Searching/binary search/c/test/catch.hpp:9210
↓ 2 callers
Function
enqueue
Graphs/bfs/c/bfs.c:120
↓ 2 callers
Method
ensureTagClosed
Searching/binary search/c/test/catch.hpp:10180
↓ 2 callers
Function
expo
Mathematics/modular exp/cpp/modular_exp.cpp:8
↓ 2 callers
Function
factorial
(num)
Mathematics/factorial/python/factorial.py:3
↓ 2 callers
Function
fibonacci
Dynamic Programming/fibonacci/cpp/fibonacci.cpp:4
↓ 2 callers
Function
find
Other Algorithms/union_find/union_find.cpp:15
↓ 2 callers
Function
find
Greedy Algorithms/Kruskal.c:61
↓ 2 callers
Method
find
data structures/hash/hashfunctions.cpp:129
↓ 2 callers
Method
findChild
Searching/binary search/c/test/catch.hpp:6192
↓ 2 callers
Function
findTurnAroundTime
Scheduling/FCFS/fcfs.cpp:31
↓ 2 callers
Function
findWaitingTime
Scheduling/FCFS/fcfs.cpp:24
↓ 2 callers
Method
find_top
()
heaps/BinomialHeap/Go/binomial_heap.go:103
↓ 2 callers
Function
findavgTime
Scheduling/FCFS/fcfs.cpp:36
↓ 2 callers
Method
flatten
Tree/Binary Tree to Linked List/cpp/BinaryTreeToLinkedList.cpp:36
↓ 2 callers
Function
flip
Reverses arr[0..i] */
Sorting/Pancake Sorting/php/pancake_sort.php:7
↓ 2 callers
Function
flip
Reverses arr[0..i] */
Sorting/Pancake Sorting/CPP/pancake_sort.cpp:8
↓ 2 callers
Function
flip
Flip
Sorting/Pancake Sorting/Go/pancakeSort.go:44
↓ 2 callers
Method
flip
(int arr[], int i)
Sorting/Pancake Sorting/Java/pancake_sorting.java:10
↓ 2 callers
Function
fpToString
Searching/binary search/c/test/catch.hpp:9081
↓ 2 callers
Method
fullConfig
Searching/binary search/c/test/catch.hpp:5619
↓ 2 callers
Function
gcd
(a,b = None)
Mathematics/GCD/python/gcd.py:4
↓ 2 callers
Method
generateEdges
(self)
data structures/Graph/GraphDictionaries.py:38
↓ 2 callers
Function
generate_exception
data structures/Matrix/cpp/main.cpp:39
↓ 2 callers
Function
getAnnotation
Searching/binary search/c/test/catch.hpp:3367
↓ 2 callers
Method
getCurrentTestName
Searching/binary search/c/test/catch.hpp:6837
↓ 2 callers
Function
getCurrentTicks
Searching/binary search/c/test/catch.hpp:8663
↓ 2 callers
Method
getExpression
Searching/binary search/c/test/catch.hpp:8210
↓ 2 callers
Function
getFormattedDuration
Because formatting using c++ streams is stateful, drop down to C is required Alternatively we could use stringstream, but its performance is... not go
Searching/binary search/c/test/catch.hpp:9626
↓ 2 callers
Method
getIndexes
** Generate the hashes from the key. Please refer to Less Hashing, Same Performance: Building a Better Bloom Filter (Adam Kirsch, Michael Mitzenmacher
data structures/Bloom Filter/bloomfilter.go:73
↓ 2 callers
Function
getMax
Get maximum value from array.
Sorting/Radix Sort/C++/radix_sort.cpp:6
↓ 2 callers
Function
getMax
Dynamic Programming/Longest Increasing Subsequence/cpp/longest_increasing_subsequence_bit.cpp:15
↓ 2 callers
Method
getMin
()
data structures/stack/java/SpecialStack.java:48
↓ 2 callers
Function
getNode
Returns new trie node (initialized to NULLs)
data structures/trie/cpp/trie.cpp:19
↓ 2 callers
Function
getNode
Tree/Trie/Trie.cpp:30
↓ 2 callers
Method
getNode
(self)
data structures/trie/python/trie.py:20
↓ 2 callers
Method
getPreferences
Searching/binary search/c/test/catch.hpp:8580
↓ 2 callers
Function
getSum
Returns sum of arr[0..index]. This function assumes that the array is preprocessed and partial sums of array elements are stored in BITree[].
data structures/Fenwick_Tree.cpp:13
↓ 2 callers
Method
getTime
()
Graphs/Dijkstra Algorithm/Java/Path.java:43
↓ 2 callers
Function
go
Tree/Heavy Light Decomposition/hld.cpp:77
↓ 2 callers
Method
greedyColoring
Assigns colors (starting from 0) to all vertices and prints the assignment of colors
Greedy Algorithms/graphcolor.cpp:30
↓ 2 callers
Method
hasExpandedExpression
Searching/binary search/c/test/catch.hpp:8223
↓ 2 callers
Function
heapSort
main function to do heap sort
Sorting/Heapsort/C++/heapsort.cpp:33
↓ 2 callers
Function
heapify
To heapify a subtree rooted with node i which is an index in arr[]. n is size of heap
Sorting/Heapsort/php/heap_sort.php:7
↓ 2 callers
Function
heapify
(arr, i, max)
Sorting/Heapsort/Javascript/heapsort.js:20
↓ 2 callers
Function
heapify
(arr, n, i)
Sorting/Heapsort/Python/heapsort.py:1
↓ 2 callers
Function
heapify
To heapify a subtree rooted with node i which is an index in arr[]. n is size of heap
Sorting/Heapsort/C++/heapsort.cpp:8
↓ 2 callers
Function
heapify
Builds a max heap in an array with the specified root
Sorting/Heapsort/Ruby/heapsort.rb:2
↓ 2 callers
Method
heapify
(int arr[], int n, int i)
Sorting/Heapsort/Java/HeapSort.java:27
↓ 2 callers
Method
inOrder
Tree/Binary Tree to Linked List/cpp/BinaryTreeToLinkedList.cpp:70
↓ 2 callers
Function
inorder
Tree/Binary Search Tree/binary_tree_mirror.cpp:27
↓ 2 callers
Method
insert
data structures/hash/hashfunctions.cpp:52
↓ 2 callers
Method
insert
(self, tree, value)
Tree/Binary Search Tree/bstree.py:70
↓ 2 callers
Method
insertEdge
(self, u, v, w=0)
Graphs/bfs/python/bfs.py:16
↓ 2 callers
Method
insertNode
(self, u)
Graphs/bfs/python/bfs.py:49
↓ 2 callers
Function
insertNode_beg
data structures/linked list/c/SinglyLinkedList.c:17
↓ 2 callers
Function
insertNode_beg
data structures/linked list/c/DoublyLinkedList.c:19
↓ 2 callers
Method
isComplete
Searching/binary search/c/test/catch.hpp:6175
↓ 2 callers
Function
isDebuggerActive
Returns true if the current process is being debugged (either running under the debugger or has a debugger attached post facto).
Searching/binary search/c/test/catch.hpp:8871
↓ 2 callers
Function
isEmpty
data structures/queue/c/queue_using_array.c:23
↓ 2 callers
Method
isEmpty
data structures/queue/Kotlin/QueueUsingArray.kt:5
↓ 2 callers
Function
isOk
Searching/binary search/c/test/catch.hpp:883
↓ 2 callers
Method
isStackEmpty
data structures/stack/Kotlin/StackUsingArray.kt:42
↓ 2 callers
Method
isVertex
(self,vertex)
data structures/Graph/Example/GraphExample.py:58
↓ 2 callers
Function
is_anagram
(str1, str2)
Mathematics/Anagrams/Python/Anagram.py:5
↓ 2 callers
Function
juggle
(n)
Mathematics/juggler sequence/javascript/juggler_seq.js:4
← previous
next →
401–500 of 3,327, ranked by callers