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
↓ 3 callers
Function
isEmpty
data structures/queue/c/queue.c:91
↓ 3 callers
Function
isEmpty
Graphs/bfs/c/bfs.c:114
↓ 3 callers
Method
isEmpty
(self)
data structures/Graph/GraphDFS.py:21
↓ 3 callers
Method
isEmpty
(self)
data structures/stack/python/stack.py:12
↓ 3 callers
Method
isEmpty
()
data structures/stack/javascript/stack.js:16
↓ 3 callers
Method
isEmpty
(self)
data structures/queue/python/queue.py:13
↓ 3 callers
Method
isEmpty
()
Tree/Binary Search Tree/bst.java:143
↓ 3 callers
Function
isFalseTest
Searching/binary search/c/test/catch.hpp:904
↓ 3 callers
Method
isSectionTracker
Searching/binary search/c/test/catch.hpp:6211
↓ 3 callers
Function
isblank
+============================================================================= Check for a valid "blank" ... '\0' is a valid "blank"
Arduino_Code/Arduino-IRremote/irPronto.cpp:36
↓ 3 callers
Function
lca
Graphs/LCA/lca.cpp:35
↓ 3 callers
Function
leftRotate
A utility function to left rotate subtree rooted with x See the diagram given above.
Tree/AVLTree/AVL_Tree.cpp:63
↓ 3 callers
Function
libraryVersion
Searching/binary search/c/test/catch.hpp:8469
↓ 3 callers
Method
listExtraInfo
Searching/binary search/c/test/catch.hpp:4060
↓ 3 callers
Function
max
Mathematics/Karatsuba/C/karatsuba.c:15
↓ 3 callers
Function
max
Sorting/Radix Sort/C/radix_sort.c:33
↓ 3 callers
Method
maxDepth
(self, tree)
Tree/Binary Search Tree/bstree.py:203
↓ 3 callers
Function
merge
Sorting/Timsort/C/timsort.c:24
↓ 3 callers
Function
min
(x, y int)
Tree/segment tree/golang/segmentTree.go:9
↓ 3 callers
Function
modular_pow
Mathematics/prime.cpp:10
↓ 3 callers
Function
modular_pow
Mathematics/Pollard-Rho/cpp/prime.cpp:5
↓ 3 callers
Method
move
Moves a piece and switches current_player
Recursive Algorithms/minimax/tic-tac-toe/tictactoe.py:43
↓ 3 callers
Method
moveNext
Searching/binary search/c/test/catch.hpp:6362
↓ 3 callers
Function
multiply
Mathematics/factorial/cpp/FactorialOfLargeNumber.cpp:25
↓ 3 callers
Function
multiply
This function multiplies x with the number represented by res[]. res_size is size of res[] or number of digits in the number represented by res[]. Thi
Mathematics/Power_For_Huge_Num/Power_Huge.cpp:17
↓ 3 callers
Function
new_node
Graphs/BinaryTree/Binary Tree.cpp:12
↓ 3 callers
Method
next
Arduino_Code/Arduino-IRremote/ir_Lego_PF_BitStreamEncoder.h:63
↓ 3 callers
Method
open
Searching/binary search/c/test/catch.hpp:6214
↓ 3 callers
Function
optimalStrategyOfGame
Returns optimal value possible that a player can collect from an array of coins of size n. Note than n must be even
Dynamic Programming/GameStrategy/game.cpp:12
↓ 3 callers
Function
parseSpecialTag
Searching/binary search/c/test/catch.hpp:8259
↓ 3 callers
Method
peek
(self)
data structures/Graph/GraphDFS.py:19
↓ 3 callers
Function
policeThief
Returns maximum number of thieves that can be caught.
Greedy Algorithms/Policemen catch thieves/cpp/policeTheives.cpp:8
↓ 3 callers
Method
pop
data structures/stack/ruby/stack.rb:11
↓ 3 callers
Method
pop
()
data structures/stack/javascript/stack.js:12
↓ 3 callers
Method
pop
* @brief Dequeue method for the heap * * @return T : the top (extremum) value */
heaps/BinomialHeap/cpp/binomial_heap.cpp:198
↓ 3 callers
Method
possible_moves
Finds all possible_moves of current board state
Recursive Algorithms/minimax/tic-tac-toe/tictactoe.py:26
↓ 3 callers
Function
postorder
To find the postorder traversal */
Tree/Binary Search Tree/bst.c:130
↓ 3 callers
Function
preorder
To find the preorder traversal */
Tree/Binary Search Tree/bst.c:115
↓ 3 callers
Method
print
Searching/binary search/c/test/catch.hpp:1746
↓ 3 callers
Function
printArray
A utility function to print array of size n */
Sorting/Heapsort/C++/heapsort.cpp:51
↓ 3 callers
Function
printMatrix
(matrix)
Searching/8-puzzleProblem/8-puzzleProblem.py:216
↓ 3 callers
Function
push
data structures/stack/c/stack.c:28
↓ 3 callers
Method
push
(self, element)
data structures/stack/python/stack.py:5
↓ 3 callers
Method
push
data structures/stack/cpp/stack-implementation.cpp:21
↓ 3 callers
Method
push
(element)
data structures/stack/ruby/stack.rb:7
↓ 3 callers
Method
push
(Node head, int d, int p)
heaps/priority queue/priority_queue.java:49
↓ 3 callers
Method
push
* @brief Enqueue method for the heap * * @param x : the value to insert */
heaps/BinomialHeap/cpp/binomial_heap.cpp:187
↓ 3 callers
Method
query
(int qsi, int qei)
Tree/segment tree/Java/SegmentTree.java:64
↓ 3 callers
Method
reconstructExpression
Searching/binary search/c/test/catch.hpp:9317
↓ 3 callers
Method
removeAt
(index)
data structures/linked list/javascript/linkedList.js:94
↓ 3 callers
Method
replaceNode
(parent, replacement *Node)
Tree/Binary Search Tree/go/src/bst.go:70
↓ 3 callers
Function
rightRotate
Tree/AVLTree/AVL_Tree.cpp:44
↓ 3 callers
Method
runOrder
Searching/binary search/c/test/catch.hpp:4078
↓ 3 callers
Function
search
Function to search the appropriate position to insert the new node */
Tree/Binary Search Tree/bst.c:86
↓ 3 callers
Function
search
(root,key)
Graphs/BinaryTree/python/binaryTree.py:31
↓ 3 callers
Method
sectionStarting
Searching/binary search/c/test/catch.hpp:8596
↓ 3 callers
Function
seedRng
Searching/binary search/c/test/catch.hpp:8783
↓ 3 callers
Method
setLeft
(int data, int parent)
Tree/Binary Tree/BinaryTree.java:15
↓ 3 callers
Method
set_next
(self,new_node)
data structures/linked list/python/Singly-linked-list.py:12
↓ 3 callers
Method
sort
(int[] data)
Sorting/Bubble Sort/Java/BubbleSort.java:12
↓ 3 callers
Function
swap
Other Algorithms/All_permutations_of_a_string.cpp:18
↓ 3 callers
Function
swap_nodes
data structures/heap/C/heap.c:53
↓ 3 callers
Method
testCaseEnded
Searching/binary search/c/test/catch.hpp:8625
↓ 3 callers
Method
testGroupEnded
Searching/binary search/c/test/catch.hpp:8632
↓ 3 callers
Method
testGroupStarting
Searching/binary search/c/test/catch.hpp:8590
↓ 3 callers
Method
testRunEnded
Searching/binary search/c/test/catch.hpp:8637
↓ 3 callers
Method
toString
Graphs/Minimum Spanning Tree/C++/data-structures/LinkedGraph.cpp:32
↓ 3 callers
Method
top
Peek the top (extremum) element of the heap @returns : value of the top element
heaps/BinomialHeap/Python/binomial_heap.py:140
↓ 3 callers
Method
union
(self, parent, rank, x, y)
Graphs/Minimum Spanning Tree/python/MST_kruskal.py:29
↓ 3 callers
Function
unionSet
Graphs/disjoint-sets/union-find.cpp:20
↓ 3 callers
Method
vertices
(self)
data structures/Graph/GraphDictionaries.py:5
↓ 2 callers
Method
Contains
Searching/binary search/c/test/catch.hpp:3443
↓ 2 callers
Method
DFSUtil
Graphs/dfs/cpp/dfs.cpp:39
↓ 2 callers
Function
Dequeue
data structures/queue/c/queue.c:80
↓ 2 callers
Method
Factorialize
(int value)
Mathematics/factorial/c-sharp/factorial.cs:5
↓ 2 callers
Function
Find
Tree/AVLTree/AVL.cpp:151
↓ 2 callers
Method
FindLongestWordLength
(string input)
Other Algorithms/Find-Longest-String-FCC/c-sharp/find-longest-string.cs:7
↓ 2 callers
Method
GetCodebook
GetCodebook returns the codebook for this particular tree.
Greedy Algorithms/Huffman/go/huffman.go:37
↓ 2 callers
Function
MIN
Sorting/Timsort/C/timsort.c:6
↓ 2 callers
Function
MatrixChainOrder
Dynamic Programming/Matrix Chain Multiplication/C/matrixChainMultiplication.c:5
↓ 2 callers
Method
ReverseString
(string original)
Other Algorithms/Reverse-A-String-FCC/c-sharp/reverse-a-string.cs:6
↓ 2 callers
Function
SortFrequencyList
SortFrequencyList generates a list of bytes sorted by relative frequency, starting with the smallest ones.
Greedy Algorithms/Huffman/go/huffman.go:82
↓ 2 callers
Function
Sort_by_arrival_time
Scheduling/FCFS/fcfs.cpp:8
↓ 2 callers
Method
Union
(subset subsets[], int x, int y)
Graphs/kruskal/Java/KruskalAlgo.java:52
↓ 2 callers
Method
V
(self)
Graphs/bfs/python/bfs.py:9
↓ 2 callers
Method
V
(self)
Graphs/bfs/python/bfs.py:53
↓ 2 callers
Method
_charToIndex
(self,ch)
data structures/trie/python/trie.py:25
↓ 2 callers
Method
_find_top
Finds the top element by traversing (the "linked list") of all root nodes of the trees in the forest @returns : (min_prev, m
heaps/BinomialHeap/Python/binomial_heap.py:100
↓ 2 callers
Method
_link
Links two nodes in the forest
heaps/BinomialHeap/Python/binomial_heap.py:40
↓ 2 callers
Method
_merge
Merges two trees (binary heaps) in the forest - this happens when we have too many or too few nodes for a single binomial tre
heaps/BinomialHeap/Python/binomial_heap.py:74
↓ 2 callers
Method
_validateIndex
(index)
data structures/linked list/javascript/linkedList.js:139
↓ 2 callers
Method
aborting
!TBD We need to do this another way!
Searching/binary search/c/test/catch.hpp:6889
↓ 2 callers
Method
add
Graphs/Minimum Spanning Tree/C++/data-structures/LinkedList.cpp:63
↓ 2 callers
Function
addAtBeginning
inserting a node at the beginning of the list
LinkedList/Reverse/Reversal_of_Single_Linked_List/C/iterative_reversal.c:11
↓ 2 callers
Method
addChild
Searching/binary search/c/test/catch.hpp:6188
↓ 2 callers
Method
addRef
Searching/binary search/c/test/catch.hpp:619
↓ 2 callers
Function
addReporter
Searching/binary search/c/test/catch.hpp:9587
↓ 2 callers
Method
addToFront
(int value)
LinkedList/Java/LinkedList.java:19
↓ 2 callers
Method
addVertex
(self,data)
data structures/Graph/Example/GraphExample.py:17
↓ 2 callers
Function
addatendlist
LinkedList/C++/doublyLinkedList.cpp:164
← previous
next →
301–400 of 3,327, ranked by callers