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
createStack
----------------This function creates new stack--------------------------*/
S-Stack/stackADTUsingLL.cpp:16
↓ 1 callers
Function
createTree
Creating tree from level order input
T-Tree/T-TreeTraversals/zigzag_levelorderTraversal.cpp:41
↓ 1 callers
Function
creatingtree
function to create genric tree (n)
T-Tree/G-GenricTree/GenricTree.cpp:19
↓ 1 callers
Function
creatingtree
T-Tree/G-GenricTree/MinimumDistanceBetweenNodeGT.cpp:18
↓ 1 callers
Function
cycleDetect
utility function to detect cycle
L-LinkedList/S-SinglyLinkedList/DetectCycleInLinkedList.cpp:43
↓ 1 callers
Function
cycleSort
S-SortingAlgorithms/CycleSort.cpp:4
↓ 1 callers
Function
del
H-Heap/MinHeap.cpp:29
↓ 1 callers
Function
del_edge
G-Graphs/I-Implementation/DelAddEdgeAdjacencyMatrix.cpp:61
↓ 1 callers
Method
deleteDuplicates
L-LinkedList/S-SinglyLinkedList/RemovingDuplicates.cpp:34
↓ 1 callers
Function
deleteNode
L-LinkedList/S-SinglyLinkedList/LinkedListOperations.cpp:61
↓ 1 callers
Function
deleteNode
function to delete a node with given key from subtree with given root.
T-Tree/B-BinarySearchTree/AVL.cpp:140
↓ 1 callers
Function
deleteRoot
Function to delete the root from Heap
H-Heap/MaxHeap.cpp:33
↓ 1 callers
Method
delete_fr_front
deletes element from the front if the deque is not empty
Q-Queue/DequeImplementation.cpp:44
↓ 1 callers
Method
delete_fr_rear
deletes element from the end if the deque is not empty
Q-Queue/DequeImplementation.cpp:59
↓ 1 callers
Function
deletion
A-Array/arrayOperations.cpp:77
↓ 1 callers
Method
dfs
G-Graphs/T-TraversalInGraphs/DepthFirstSearch.cpp:36
↓ 1 callers
Function
diameter
the function diameter basically calculate the diameter and update it if required but return the height. And as a parameter, a Node is passed.
T-Tree/G-GenricTree/DiameterofGenricTree.cpp:17
↓ 1 callers
Method
dijsktraSSSp
G-GraphAlgorithms/S-SingleSourceShortestPath/DijsktraSSSp.cpp:40
↓ 1 callers
Function
display
display huffman coding
G-GreedyAlgorithms/HuffmanCoding.cpp:27
↓ 1 callers
Function
display
H-HashTable/HashCustomers.cpp:67
↓ 1 callers
Function
display
function to display the 2-d array
B-Backtracking/TheKnight’stourproblem.cpp:7
↓ 1 callers
Function
display
----------------This function prints all the element sof the Stack----------*/
S-Stack/stackADTUsingLL.cpp:85
↓ 1 callers
Function
display
function to display the genric tree (n)
T-Tree/G-GenricTree/GenricTree.cpp:46
↓ 1 callers
Method
display
O-OOPS/I-Inheritance/Single-Inheritance.cpp:43
↓ 1 callers
Method
display
Miscellaneous/F-Friend/FriendClass.cpp:43
↓ 1 callers
Method
display_results
O-OOPS/I-Inheritance/Multilevel-Inheritance.cpp:51
↓ 1 callers
Function
distancebetwennode
T-Tree/G-GenricTree/MinimumDistanceBetweenNodeGT.cpp:65
↓ 1 callers
Function
editDistance
D-DynamicProgramming/EditDistance.cpp:10
↓ 1 callers
Function
efficientPeak
Function to find peak of the array
A-Array/Peak.cpp:14
↓ 1 callers
Method
eggDrop
D-DynamicProgramming/EggDroppingPuzzle.cpp:31
↓ 1 callers
Function
empty
Checking if the stack is empty
S-Stack/DecimalToBinary.cpp:21
↓ 1 callers
Function
emptyStack
----------------This function checks whether the stack is empty-------------*/
S-Stack/stackADTUsingLL.cpp:75
↓ 1 callers
Function
factorial
M-MathematicalAlgorithms/Factorial of large numbers/FactorialLargeNumbers.cpp:23
↓ 1 callers
Function
fibonacci
Function to calculate nth fibonacci number
R-Recursion/FibonacciNumber.cpp:12
↓ 1 callers
Function
findAPs_Tarjan
G-Graphs/ArticulationPoints.cpp:36
↓ 1 callers
Function
findCeil
Function to find Ceil value
T-Tree/B-BinarySearchTree/Ceil Value in BST/CeilValue.cpp:51
↓ 1 callers
Method
findCycle
initiate the search on path/cycle
B-Backtracking/HamiltonianCycle.cpp:50
↓ 1 callers
Function
findDistance
G-Graphs/M-MinimumSpanningTree/Prims.cpp:5
↓ 1 callers
Function
findMajority
A-Array/MajorityElement.cpp:4
↓ 1 callers
Function
findMinInsertionsLCS
LCS based function to find minimum number of insertions
D-DynamicProgramming/Minimum_insertions_form_palindrome.cpp:47
↓ 1 callers
Function
findPair
Find pairs with given sum key
P-Problem Statements & Solution/1-Level 1/two_pointer_on_doubly_linked_list.cpp:55
↓ 1 callers
Function
findParentsAndLevels
T-Tree/B-BinaryTree/CousinsBinaryTree.cpp:21
↓ 1 callers
Function
findWater
D-DynamicProgramming/TrappingRainWater.cpp:10
↓ 1 callers
Function
floyd_warshall
G-GraphAlgorithms/S-SingleSourceShortestPath/floyd_warshall.cpp:8
↓ 1 callers
Function
fordFulkerson
Applying fordfulkerson algorithm
G-GraphAlgorithms/FordFulkerson.cpp:37
↓ 1 callers
Function
ford_fulkerson
G-Graphs/N-NetworkFlow/fordFulkerson.cpp:71
↓ 1 callers
Function
fun
Recursion function
R-Recursion/Types of Recursion/TailRecursion.cpp:6
↓ 1 callers
Function
fun
Recursive function
R-Recursion/Types of Recursion/HeadRecursion.cpp:7
↓ 1 callers
Function
fun
Recursive function
R-Recursion/Types of Recursion/TreeRecursion.cpp:6
↓ 1 callers
Function
funB
R-Recursion/Types of Recursion/IndirectRecursion.cpp:17
↓ 1 callers
Function
generate
R-Recursion/SubsequenceKSUM.cpp:9
↓ 1 callers
Function
getBit
B-BitManipulation/BitManipulation.cpp:7
↓ 1 callers
Function
getBucketIndex
S-SortingAlgorithms/BucketSort.cpp:149
↓ 1 callers
Function
getMax
A utility function to get maximum value in arr[]
S-SearchingAlgorithms/RadixSort.cpp:7
↓ 1 callers
Method
getPVT
function to access private member
O-OOPS/I-Inheritance/AccessModifiersInInheritance.cpp:13
↓ 1 callers
Function
getSumUtil
A recursive function to get the sum of values in the given range of the array. The following are parameters for this function. st --> Poin
A-AdvancedDataStructures/SegmentTree.cpp:18
↓ 1 callers
Function
heapSort
performing heap Sort
H-Heap/HeapSort.cpp:30
↓ 1 callers
Function
heapify
H-Heap/Heapify.cpp:7
↓ 1 callers
Function
height
Compute the "height" of a tree -- the number of nodes along the longest path from the root node down to the farthest leaf node.*/
T-Tree/T-TreeTraversals/levelorderTraversal.cpp:46
↓ 1 callers
Function
height
------------Height of the binary tree------------///
T-Tree/B-BinaryTree/Height_of_Tree.cpp:36
↓ 1 callers
Function
helper
A-Array/CountingDivisibleSubstrings.cpp:7
↓ 1 callers
Function
huffmancode
building a huffman tree
G-GreedyAlgorithms/HuffmanCoding.cpp:37
↓ 1 callers
Function
inOrderTraversal
---------------------Main Function--------------------------/// InOrder Traversal of Binary Tree - Similar to Depth First Search
T-Tree/T-TreeTraversals/inorderTraversal.cpp:25
↓ 1 callers
Function
inOrderTraversal
To Print BST
T-Tree/B-BinarySearchTree/BST.cpp:24
↓ 1 callers
Function
initialization
Initializing the Stack
S-Stack/DecimalToBinary.cpp:15
↓ 1 callers
Function
inorder
-------------------A function for inorder traversal of the tree-------------------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:60
↓ 1 callers
Function
inputTree
T-Tree/T-TreeTraversals/zigzag_levelorderTraversal.cpp:22
↓ 1 callers
Function
insert
TIME COMPLEXITY BEST CASE TIME COMPLEXITY FOR INSERTION IS O(1) as the element to be inserted is at last index. So the element is directly inserted WO
A-Array/arrayOperations.cpp:47
↓ 1 callers
Function
insert
T-Trie/TrieImplementation.cpp:24
↓ 1 callers
Function
insert
function that inserts an element into stack.
S-Stack/ReverseStack.cpp:13
↓ 1 callers
Function
insert
function to insert a key in node
T-Tree/B-BinarySearchTree/AVL.cpp:84
↓ 1 callers
Function
insertAtTail
L-LinkedList/Clone a List with Random pointers/LinkedListClone.cpp:24
↓ 1 callers
Function
insertHT
H-HashTable/HashCustomers.cpp:25
↓ 1 callers
Function
insertNode
Function to insert a new node to the Heap
H-Heap/MaxHeap.cpp:48
↓ 1 callers
Function
insertNode
L-LinkedList/S-SinglyLinkedList/LinkedListOperations.cpp:35
↓ 1 callers
Method
insert_at_beg
inserts element at the front if the deque is not full
Q-Queue/DequeImplementation.cpp:14
↓ 1 callers
Method
insert_at_end
inserts element at the rear if the deque is not full
Q-Queue/DequeImplementation.cpp:28
↓ 1 callers
Function
internal_nodes
T-Tree/B-BinaryTree/InternalNodes.cpp:43
↓ 1 callers
Function
interpolationSearch
S-SearchingAlgorithms/InterpolationSearch.cpp:7
↓ 1 callers
Function
inversion_count
R-Recursion/InversionCount.cpp:38
↓ 1 callers
Function
isAllocationPossible
function to check if cows can be allocated for the given minimum distance betwen two cows
P-Problem Statements & Solution/2-Level 2/AggressiveCows.cpp:4
↓ 1 callers
Function
isBalanced
S-Stack/Bracket Balancing Using Stack/Bracket_Balancing_using_Stack.cpp:4
↓ 1 callers
Function
isCousins
T-Tree/B-BinaryTree/CousinsBinaryTree.cpp:44
↓ 1 callers
Function
isOperator
----------------------A function to check the character is operator or not --------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:53
↓ 1 callers
Function
isPalindrome
Function will check weather the list is palindrome or not
L-LinkedList/S-SinglyLinkedList/PalindromeLinkedList.cpp:33
↓ 1 callers
Function
isPalindrome
Function to test whether a string is palindrome or not */
S-Strings/StringPalindrome/StringPalindrome.cpp:6
↓ 1 callers
Method
isSameSet
D-DisjointSetUnion/DSU.cpp:51
↓ 1 callers
Function
isValidBST
main function which will return thr result in boolean format
T-Tree/B-BinarySearchTree/Check Valid BST/checkValidBST.cpp:23
↓ 1 callers
Function
iterativePreAndPostOrder
T-Tree/G-GenricTree/IterativePreorderandPostorder.cpp:15
↓ 1 callers
Method
kLargest
H-Heap/klargest.cpp:7
↓ 1 callers
Function
knapSack
D-DynamicProgramming/KnapsackwithDuplicateItems.cpp:29
↓ 1 callers
Method
kruskal_mst
G-Graphs/M-MinimumSpanningTree/kruskalDSU.cpp:77
↓ 1 callers
Function
largestSum
D-DynamicProgramming/Kadane's Algorithm/Kadane's Algorithm.cpp:5
↓ 1 callers
Function
lcs
Returns length of LCS for X[0..m - 1], Y[0..n - 1]
D-DynamicProgramming/ShortestCommonSuperSequence.cpp:30
↓ 1 callers
Function
lcs
LCS function to find the length of longest common subsequence in two strings str1 and str2
D-DynamicProgramming/MinimumInsertionDeletion.cpp:8
↓ 1 callers
Function
lcs
Returns length of LCS for X[0..m-1], Y[0..n-1].
D-DynamicProgramming/Minimum_insertions_form_palindrome.cpp:8
↓ 1 callers
Function
lcsAlgo
D-DynamicProgramming/LongestCommonSubsequence.cpp:6
↓ 1 callers
Function
leaf_count
------------Number of leaf nodes in the binary tree------------//
T-Tree/B-BinaryTree/No_of_leaf_nodes.cpp:46
↓ 1 callers
Function
levelorder
T-Tree/G-GenricTree/LevelOrderTraversalOfaGenricTree.cpp:38
↓ 1 callers
Function
linearSearch
A-Array/arrayOperations.cpp:94
← previous
next →
201–300 of 805, ranked by callers