Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lakhankumawat/LearnCPP
/ functions
Functions
805 in github.com/Lakhankumawat/LearnCPP
⨍
Functions
805
◇
Types & classes
146
↓ 99 callers
Method
size
S-Stack/StacksUsingQueue.cpp:56
↓ 91 callers
Method
push
push expensive
S-Stack/StacksUsingQueue.cpp:24
↓ 71 callers
Method
pop
pop easy
S-Stack/StacksUsingQueue.cpp:39
↓ 57 callers
Method
top
S-Stack/StacksUsingQueue.cpp:48
↓ 53 callers
Method
empty
RETURNS TRUE IF BOTH STACKS ARE EMPTY
Q-Queue/QueueUsingStacks.cpp:37
↓ 20 callers
Method
insert
Inserting Node
T-Trie/CountPrefix.cpp:27
↓ 15 callers
Function
max
function to get maximum of two integers
T-Tree/B-BinarySearchTree/AVL.cpp:17
↓ 14 callers
Method
find
If find does not make sense then you need to watch DSU videos
G-Graphs/M-MinimumSpanningTree/kruskalDSU.cpp:29
↓ 14 callers
Function
height
function to get the height of the tree
T-Tree/B-BinarySearchTree/AVL.cpp:23
↓ 10 callers
Function
find
================================================== DSU FIND FUNCTION (path compression) ===================================================*/
G-Graphs/M-MinimumSpanningTree/Boruvka's_algorithm.cpp:7
↓ 10 callers
Function
swap
Function to swap two numbers.
A-Array/SortingInWaveForm.cpp:6
↓ 9 callers
Function
insert
Function to insert a node in doubly linked list
P-Problem Statements & Solution/1-Level 1/two_pointer_on_doubly_linked_list.cpp:28
↓ 9 callers
Function
newNode
T-Tree/T-TreeTraversals/RightSideViewOfBT.cpp:20
↓ 9 callers
Function
print
S-STL/C-Containers/V-Vector/Vector_Operations.cpp:7
↓ 8 callers
Method
displayValues
O-OOPS/OperatorOverloadingBinary.cpp:7
↓ 8 callers
Function
max
Utility function to get max of 2 integers
D-DynamicProgramming/ShortestCommonSuperSequence.cpp:8
↓ 7 callers
Function
insertNode
T-Tree/T-TreeTraversals/preorderTraversal.cpp:38
↓ 7 callers
Function
insertNode
T-Tree/T-TreeTraversals/inorderTraversal.cpp:38
↓ 7 callers
Function
insertNode
T-Tree/T-TreeTraversals/postorderTraversal.cpp:38
↓ 7 callers
Function
insertNode
T-Tree/B-BinarySearchTree/BST.cpp:37
↓ 7 callers
Function
print
S-STL/C-Containers/L-List/Lists-Operations.cpp:6
↓ 6 callers
Method
addEdge
G-Graphs/T-TraversalInGraphs/DepthFirstSearch.cpp:15
↓ 6 callers
Function
getBalance
function to get balance factor
T-Tree/B-BinarySearchTree/AVL.cpp:76
↓ 6 callers
Function
leftRotate
function to left rotate subtree
T-Tree/B-BinarySearchTree/AVL.cpp:59
↓ 6 callers
Function
rightRotate
function to right rotate subtree
T-Tree/B-BinarySearchTree/AVL.cpp:42
↓ 6 callers
Function
solve
G-Graphs/GraphColoring.cpp:6
↓ 6 callers
Function
swap
S-SortingAlgorithms/QuickSort.cpp:19
↓ 5 callers
Function
add_node
* @brief add_node function are create new node * * @param data * @return struct Node* */
T-Tree/T-TreeTraversals/MorrisTraversal.cpp:73
↓ 5 callers
Function
displayLL
L-LinkedList/S-SinglyLinkedList/LinkedListOperations.cpp:27
↓ 5 callers
Function
newNode
Helper function that allocates a new node with the given data and NULL left and right pointers. */
T-Tree/T-TreeTraversals/levelorderTraversal.cpp:68
↓ 5 callers
Function
push
Given a reference (pointer to pointer) to the head of a list and an int, push a new node on the front of the list.
L-LinkedList/S-SinglyLinkedList/SearchingInALinkedList.cpp:13
↓ 5 callers
Function
reverse
function that reverses the given stack
S-Stack/ReverseStack.cpp:31
↓ 5 callers
Function
traversal
A-Array/arrayOperations.cpp:28
↓ 5 callers
Function
value_of_function
epsilon be the error in determing roots of a function take an example of a function whose solution we have to find Let function be: x^3 - x^2 + 2
M-MathematicalAlgorithms/BisectionMethod.cpp:7
↓ 4 callers
Method
addEdge
G-Graphs/I-Implementation/AdjListUsingHashmap.cpp:12
↓ 4 callers
Method
add_edge
G-Graphs/I-Implementation/AdjacencyList.cpp:15
↓ 4 callers
Method
dequeue
Q-Queue/QueueUsingStacks.cpp:17
↓ 4 callers
Function
display
G-Graphs/I-Implementation/PathMatrix.cpp:102
↓ 4 callers
Method
enqueue
SIMPLY PUSH THE ELEMENT IN STACK1
Q-Queue/QueueUsingStacks.cpp:13
↓ 4 callers
Method
get
L-LinkedList/LRU Cache/LRUCache.cpp:51
↓ 4 callers
Function
insertNode
utility function to insert node in the list
L-LinkedList/S-SinglyLinkedList/DetectCycleInLinkedList.cpp:15
↓ 4 callers
Method
put
L-LinkedList/LRU Cache/LRUCache.cpp:67
↓ 4 callers
Function
showlist
S-STL/C-Containers/L-List/Lists.cpp:8
↓ 3 callers
Method
addEdge
G-Graphs/T-TraversalInGraphs/BreadthFirstSearch.cpp:15
↓ 3 callers
Function
display
G-Graphs/I-Implementation/DelAddEdgeAdjacencyMatrix.cpp:44
↓ 3 callers
Function
display_1
------------This function displys the contents of stack 1---------------------------------*/
S-Stack/twoStackArray.cpp:66
↓ 3 callers
Function
display_2
------------This function displays the contents of stack 2--------------------------------*/
S-Stack/twoStackArray.cpp:81
↓ 3 callers
Function
func_swap
T is the template argument that accepts different data types
T-Template/FunctionTemplate.cpp:5
↓ 3 callers
Function
getMid
A utility function to get the middle index from corner indexes.
A-AdvancedDataStructures/SegmentTree.cpp:7
↓ 3 callers
Method
getProt
function to access protected member from Base
O-OOPS/I-Inheritance/AccessModifiersInInheritance.cpp:25
↓ 3 callers
Function
repeat
E-Extra/turtle.cpp:9
↓ 3 callers
Method
reverse
Function to reverse the linked list
L-LinkedList/S-SinglyLinkedList/ReverseLinkedList.cpp:23
↓ 3 callers
Method
show
prints deque if it is not empty
Q-Queue/DequeImplementation.cpp:72
↓ 2 callers
Function
INSERTintoBST
Insertion Values into BST
T-Tree/B-BinarySearchTree/Floor Value in BST/FloorValueBST.cpp:21
↓ 2 callers
Method
PrintPrivate
Miscellaneous/F-Friend/FriendFunction.cpp:12
↓ 2 callers
Function
ProvideNode
Provides the node whenever new node encounters.
T-Trie/TrieImplementation.cpp:12
↓ 2 callers
Function
calculateGCD
-------------Recursive method for the calculation of GCD----------------------------*/
R-Recursion/RecursiveGCDandLCM.cpp:7
↓ 2 callers
Function
display
T-Tree/G-GenricTree/MirrorOfGenricTree.cpp:23
↓ 2 callers
Function
findparent
To find the parent of a given index recursively
G-Graphs/M-MinimumSpanningTree/Kruskal.cpp:18
↓ 2 callers
Function
funA
R-Recursion/Types of Recursion/IndirectRecursion.cpp:7
↓ 2 callers
Method
getMaxval
T-Template/ClassTemplate.cpp:14
↓ 2 callers
Method
getPub
function to access private member
O-OOPS/I-Inheritance/AccessModifiersInInheritance.cpp:59
↓ 2 callers
Function
getSum
Return sum of elements in range from index qs (query start) to qe (query end). It mainly uses getSumUtil()
A-AdvancedDataStructures/SegmentTree.cpp:82
↓ 2 callers
Method
getdata
data members of base class created
O-OOPS/I-Inheritance/Hierarchical-Inheritance.cpp:8
↓ 2 callers
Method
getdata_derived
O-OOPS/I-Inheritance/Hierarchical-Inheritance.cpp:20
↓ 2 callers
Function
hashFunction
H-HashTable/HashCustomers.cpp:19
↓ 2 callers
Function
heapify
To heapify a subtree rooted with node i which is an index in arr[]. n is size of heap
H-Heap/HeapSort.cpp:6
↓ 2 callers
Function
heapify
To heapify a subtree rooted with node i which is an index of arr[] and n is the size of heap
H-Heap/MaxHeap.cpp:9
↓ 2 callers
Function
insert
H-Heap/MinHeap.cpp:12
↓ 2 callers
Function
myPow_h
D-DivideAndConquerAlgorithms/Pow.cpp:7
↓ 2 callers
Function
newNode
--------------------------A function for allocating new tree node-----------------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:16
↓ 2 callers
Function
nodetopath
T-Tree/G-GenricTree/MinimumDistanceBetweenNodeGT.cpp:44
↓ 2 callers
Function
pop
------------------------A pop function for remoing nodes from the stack-----------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:43
↓ 2 callers
Function
preOrder
function to print preorder traversal of the tree.
T-Tree/B-BinarySearchTree/AVL.cpp:218
↓ 2 callers
Function
precedence_comparision
to comparare the precedence of operaters
S-Stack/InfixToPostfix.cpp:9
↓ 2 callers
Function
precedence_comparision
to comparare the precedence of operaters
S-Stack/InfixToPrefix.cpp:8
↓ 2 callers
Function
print
Print buckets
S-SortingAlgorithms/BucketSort.cpp:155
↓ 2 callers
Function
print
print list
L-LinkedList/Clone a List with Random pointers/LinkedListClone.cpp:17
↓ 2 callers
Function
print
H-HashMap/Map.cpp:13
↓ 2 callers
Method
print
Function to print the linked list
L-LinkedList/S-SinglyLinkedList/ReverseLinkedList.cpp:38
↓ 2 callers
Function
printArray
* Printing the array * Input: array to be printed, size of the array */
S-SortingAlgorithms/ShellSort.cpp:55
↓ 2 callers
Function
printArray
method to print the array
A-Array/Sort_0_1_2.cpp:7
↓ 2 callers
Function
printBuckets
S-SortingAlgorithms/BucketSort.cpp:166
↓ 2 callers
Function
printList
Function to print nodes in a given doubly linked list This function is same as printList() of singly linked list */
L-LinkedList/D-DoublyLinkedList/Reverse.cpp:67
↓ 2 callers
Function
printVec
B-BitManipulation/SubsetsGeneration.cpp:29
↓ 2 callers
Function
push
--------------------------A push function for nodes into the stack---------------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:30
↓ 2 callers
Method
push
Function to Insert values to Linked List
L-LinkedList/S-SinglyLinkedList/ReverseLinkedList.cpp:46
↓ 2 callers
Function
queri
the query function
T-Tree/F-FenwickTree/K_Query.cpp:30
↓ 2 callers
Function
search
Returns true if key presents else false
T-Trie/TrieImplementation.cpp:42
↓ 2 callers
Function
showRes
For Printing onto Screen
S-SortingAlgorithms/BucketSort.cpp:178
↓ 1 callers
Function
Boruvkas_function
======================================================== BORUVKA'S ALGORITHM MAIN FUNCTION ===============================================
G-Graphs/M-MinimumSpanningTree/Boruvka's_algorithm.cpp:41
↓ 1 callers
Function
Bst
function BST of type class bst
T-Tree/B-BinaryTree/LargestBSTinBT.cpp:57
↓ 1 callers
Function
BucketSort
Sorting function
S-SortingAlgorithms/BucketSort.cpp:26
↓ 1 callers
Function
CelebrityProblem
S-Stack/TheCelebrityProblem/CelebrityProblem.cpp:4
↓ 1 callers
Function
ChangePrivate
Miscellaneous/F-Friend/FriendFunction.cpp:17
↓ 1 callers
Function
DFS
G-Graphs/ArticulationPoints.cpp:9
↓ 1 callers
Function
Delete
L-LinkedList/D-DoublyLinkedList/DoublyLinkedListOperations.cpp:29
↓ 1 callers
Function
Delete
Q-Queue/CircularQueueUsingLinkedList.cpp:31
↓ 1 callers
Function
Delete
Q-Queue/CircularQueueUsingArray.cpp:20
↓ 1 callers
Function
Delete
Q-Queue/QueueUsingArray.cpp:14
next →
1–100 of 805, ranked by callers