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
↓ 1 callers
Function
Delete
Q-Queue/QueueUsingLinkedList.cpp:28
↓ 1 callers
Function
Diameter
T-Tree/B-BinaryTree/Diameter.cpp:81
↓ 1 callers
Function
Display
L-LinkedList/D-DoublyLinkedList/DoublyLinkedListOperations.cpp:42
↓ 1 callers
Function
Display
Q-Queue/CircularQueueUsingLinkedList.cpp:49
↓ 1 callers
Function
Display
Q-Queue/CircularQueueUsingArray.cpp:32
↓ 1 callers
Function
Display
Q-Queue/QueueUsingArray.cpp:23
↓ 1 callers
Function
Display
Q-Queue/QueueUsingLinkedList.cpp:45
↓ 1 callers
Function
FloorInBst
Function to find floor value
T-Tree/B-BinarySearchTree/Floor Value in BST/FloorValueBST.cpp:59
↓ 1 callers
Method
Func1
Miscellaneous/F-Friend/FriendClass.cpp:39
↓ 1 callers
Method
Func2
Miscellaneous/F-Friend/FriendClass.cpp:42
↓ 1 callers
Function
InfixToPrefix
S-Stack/InfixToPrefix.cpp:28
↓ 1 callers
Function
InfixtoPostfix
converts infix to postfix expression
S-Stack/InfixToPostfix.cpp:33
↓ 1 callers
Function
Insert
L-LinkedList/D-DoublyLinkedList/DoublyLinkedListOperations.cpp:10
↓ 1 callers
Function
Insert
Q-Queue/CircularQueueUsingLinkedList.cpp:10
↓ 1 callers
Function
Insert
Q-Queue/CircularQueueUsingArray.cpp:5
↓ 1 callers
Function
Insert
Q-Queue/QueueUsingArray.cpp:4
↓ 1 callers
Function
Insert
Q-Queue/QueueUsingLinkedList.cpp:10
↓ 1 callers
Function
InsertAtHead
the InsertAtHead have a head and a data
L-LinkedList/S-SinglyLinkedList/SegregateEvenOdd.cpp:15
↓ 1 callers
Function
InsertAtTail
the InsertAtTail have a tail and a data
L-LinkedList/S-SinglyLinkedList/SegregateEvenOdd.cpp:22
↓ 1 callers
Function
InsertionSort
Function to sort the elements of each bucket
S-SortingAlgorithms/BucketSort.cpp:100
↓ 1 callers
Function
Intersection_array
S-Sets/IntersectionSets.cpp:7
↓ 1 callers
Function
JobSchedulingUsingDeadline
G-GreedyAlgorithms/JobSequencing_with_Deadlines.cpp:21
↓ 1 callers
Function
KMP
Function to implement the KMP algorithm
S-StringAlgorithms/KMP/kmp.cpp:5
↓ 1 callers
Function
KnapSackFractional
G-GreedyAlgorithms/FractionalKnapsack.cpp:20
↓ 1 callers
Function
Kruskal
G-Graphs/M-MinimumSpanningTree/Kruskal.cpp:24
↓ 1 callers
Function
Max_num
function which is declare above for getting the maximum number
R-Recursion/Types of Recursion/LinearRecursion.cpp:15
↓ 1 callers
Function
Merge
S-SortingAlgorithms/MergeSort.cpp:12
↓ 1 callers
Function
Merge
R-Recursion/InversionCount.cpp:13
↓ 1 callers
Function
Merge_sort
S-SortingAlgorithms/MergeSort.cpp:34
↓ 1 callers
Function
Morris
T-Tree/T-TreeTraversals/MorrisTraversal.cpp:18
↓ 1 callers
Function
Print
S-SortingAlgorithms/QuickSort.cpp:56
↓ 1 callers
Function
Print
S-SortingAlgorithms/MergeSort.cpp:45
↓ 1 callers
Function
Quick_sort
S-SortingAlgorithms/QuickSort.cpp:45
↓ 1 callers
Function
RecursiveSearch
Recursive C++ program to search an element in linked list
L-LinkedList/S-SinglyLinkedList/SearchingInALinkedList.cpp:44
↓ 1 callers
Function
RodCutting
Function to find the maximum revenue from cutting a rod of length (len) where the rod of length (i) has cost (prices[i - 1])
D-DynamicProgramming/RodCutting.cpp:9
↓ 1 callers
Function
SearchElement
S-SearchingAlgorithms/SearchElementRotatedSortedArray.cpp:8
↓ 1 callers
Function
TOH
R-Recursion/TowerofHanoi.cpp:8
↓ 1 callers
Method
TopologicalBfs
S-SortingAlgorithms/T-TopologicalSorting/TopologicalSortBFS.cpp:9
↓ 1 callers
Function
TreeWrap
Wrapper function to call conTree()
T-Tree/T-TreeTraversals/verticalTraversal.cpp:54
↓ 1 callers
Function
Union
==================================================== DSU UNION FUNCTION (union by comparing rank) ===============================================
G-Graphs/M-MinimumSpanningTree/Boruvka's_algorithm.cpp:19
↓ 1 callers
Method
Unite
G-Graphs/M-MinimumSpanningTree/kruskalDSU.cpp:39
↓ 1 callers
Function
addEdge
G-Graphs/N-NetworkFlow/fordFulkerson.cpp:130
↓ 1 callers
Method
addEdge
G-Graphs/ConnectedComponentUndirectedGraph.cpp:54
↓ 1 callers
Method
addEdge
G-Graphs/M-MinimumSpanningTree/primsPriorityQueue.cpp:18
↓ 1 callers
Method
addEdge
Sorting based on element present in 0th index so weight first
G-Graphs/M-MinimumSpanningTree/kruskalDSU.cpp:73
↓ 1 callers
Method
addEdge
G-GraphAlgorithms/S-SingleSourceShortestPath/DijsktraSSSp.cpp:14
↓ 1 callers
Function
addPi
character array and index
R-Recursion/ReplacePi.cpp:21
↓ 1 callers
Function
add_edge
G-Graphs/I-Implementation/DelAddEdgeAdjacencyMatrix.cpp:53
↓ 1 callers
Function
append
L-LinkedList/Clone a List with Random pointers/LinkedListClone.cpp:35
↓ 1 callers
Function
bellmanFord
G-GraphAlgorithms/S-SingleSourceShortestPath/Bellman_Ford.cpp:16
↓ 1 callers
Function
bfs
Bfs implementation to return the min_cap while traversing ,if present any
G-Graphs/N-NetworkFlow/fordFulkerson.cpp:18
↓ 1 callers
Function
bfs
Using BFS as a searching algorithm
G-GraphAlgorithms/FordFulkerson.cpp:7
↓ 1 callers
Method
bfs
G-Graphs/T-TraversalInGraphs/BreadthFirstSearch.cpp:20
↓ 1 callers
Function
binarySearch
NOTE** BINARY SEARCH WORKS FOR ONLY SORTED ARRAY
A-Array/arrayOperations.cpp:120
↓ 1 callers
Function
bipartite
G-Graphs/B-BipartiteGraph/checkBipartite.cpp:8
↓ 1 callers
Function
bisection_method
Prints root of func(x) with error of epilon
M-MathematicalAlgorithms/BisectionMethod.cpp:13
↓ 1 callers
Function
buildHeap
Function to build a Max-Heap from the given array
H-Heap/Heapify.cpp:31
↓ 1 callers
Function
buyMaxStocks
Returning the maximum stocks
G-GreedyAlgorithms/BuyMaximumStocksiStocksBoughtIthDay.cpp:8
↓ 1 callers
Function
calculateLCM
R-Recursion/RecursiveGCDandLCM.cpp:15
↓ 1 callers
Function
check
Function to check if elements returned by user * contains the elements in topological sorted form * V: number of vertices * *res: array containi
S-SortingAlgorithms/T-TopologicalSorting/TopologicalSortDFS.cpp:50
↓ 1 callers
Function
checkBipartite
G-Graphs/B-BipartiteGraph/checkBipartite.cpp:33
↓ 1 callers
Function
checkSubsetSum
D-DynamicProgramming/SubsetSum.cpp:8
↓ 1 callers
Function
clearBit
B-BitManipulation/BitManipulation.cpp:19
↓ 1 callers
Function
clearBitsRange
B-BitManipulation/BitManipulation.cpp:35
↓ 1 callers
Function
clearLastnBits
B-BitManipulation/BitManipulation.cpp:31
↓ 1 callers
Function
clone
L-LinkedList/Clone a List with Random pointers/LinkedListClone.cpp:51
↓ 1 callers
Function
coinChange
D-DynamicProgramming/CoinChange.cpp:30
↓ 1 callers
Function
conTree
T-Tree/T-TreeTraversals/verticalTraversal.cpp:29
↓ 1 callers
Method
conenctedComponents
G-Graphs/ConnectedComponentUndirectedGraph.cpp:21
↓ 1 callers
Function
construct
T-Tree/G-GenricTree/IterativePreorderandPostorder.cpp:42
↓ 1 callers
Function
construct
T-Tree/G-GenricTree/DiameterofGenricTree.cpp:48
↓ 1 callers
Function
construct
T-Tree/G-GenricTree/LevelOrderTraversalOfaGenricTree.cpp:19
↓ 1 callers
Function
constructST
Function to construct segment tree from given array. This function allocates memory for segment tree and calls constructSTUtil() to fill the allocat
A-AdvancedDataStructures/SegmentTree.cpp:117
↓ 1 callers
Function
constructSTUtil
A recursive function that constructs Segment Tree for array[ss..se]. si is index of current node in segment tree st
A-AdvancedDataStructures/SegmentTree.cpp:96
↓ 1 callers
Function
constructTree
The main function to construct BST from given preorder traversal. This function mainly uses constructTreeUtil()
T-Tree/B-BinarySearchTree/ConstructBSTFromPreoderTraversal.cpp:75
↓ 1 callers
Function
constructTree
T-Tree/B-BinaryTree/LargestBSTinBT.cpp:31
↓ 1 callers
Function
constructTreeUtil
A recursive function to construct BST from pre[]. preIndex is used to keep track of index in pre[].
T-Tree/B-BinarySearchTree/ConstructBSTFromPreoderTraversal.cpp:31
↓ 1 callers
Function
constructor01
T-Tree/G-GenricTree/MirrorOfGenricTree.cpp:40
↓ 1 callers
Function
convert12
Convert Function which takes in 24hour time and convert it to 12 hour format
P-Problem Statements & Solution/1-Level 1/24hrTo12hrFormat.cpp:9
↓ 1 callers
Function
cost
Function to return the minimum cost of connecting the ropes.
H-Heap/MinCostRopes.cpp:9
↓ 1 callers
Function
countEachChar
to count occurrence of character in a string
S-Strings/CountCharOccurrence.cpp:7
↓ 1 callers
Function
countFreq
P-Problem Statements & Solution/1-Level 1/CountingFrequencies.cpp:6
↓ 1 callers
Function
countSetBit
method 1 : slow approach
B-BitManipulation/Count_set_Bits.cpp:8
↓ 1 callers
Function
countSetBitFast
method 2 : fast approach
B-BitManipulation/Count_set_Bits.cpp:18
↓ 1 callers
Function
countSort
A function to do counting sort of arr[] according to the digit represented by exp.
S-SearchingAlgorithms/RadixSort.cpp:18
↓ 1 callers
Function
count_of_subsets
D-DynamicProgramming/CountOfSubsetsWithGivenSum.cpp:3
↓ 1 callers
Function
counting_divisible_substring
A-Array/CountingDivisibleSubstrings.cpp:22
↓ 1 callers
Function
countsort
counting sort function
S-SortingAlgorithms/CountingSort.cpp:6
↓ 1 callers
Function
create
G-Graphs/I-Implementation/PathMatrix.cpp:51
↓ 1 callers
Function
create
Function will create a linked list, new nodes will be added at the end of the list
L-LinkedList/S-SinglyLinkedList/middleElementOfLinkedList.cpp:15
↓ 1 callers
Function
create
Function will create a linked list, new nodes will be added at the end of the list
L-LinkedList/S-SinglyLinkedList/PalindromeLinkedList.cpp:19
↓ 1 callers
Function
create
T-Tree/B-BinaryTree/Height_of_Tree.cpp:13
↓ 1 callers
Function
create
T-Tree/B-BinaryTree/No_of_leaf_nodes.cpp:18
↓ 1 callers
Function
create
T-Tree/B-BinaryTree/InternalNodes.cpp:18
↓ 1 callers
Function
createCycle
utility function to create cycle
L-LinkedList/S-SinglyLinkedList/DetectCycleInLinkedList.cpp:31
↓ 1 callers
Function
createLL
L-LinkedList/S-SinglyLinkedList/LinkedListOperations.cpp:11
↓ 1 callers
Function
createNode
T-Tree/T-TreeTraversals/preorderTraversal.cpp:13
↓ 1 callers
Function
createNode
T-Tree/T-TreeTraversals/inorderTraversal.cpp:13
↓ 1 callers
Function
createNode
T-Tree/T-TreeTraversals/postorderTraversal.cpp:13
↓ 1 callers
Function
createNode
T-Tree/B-BinarySearchTree/BST.cpp:13
← previous
next →
101–200 of 805, ranked by callers