MCPcopy Create free account

hub / github.com/Lakhankumawat/LearnCPP / functions

Functions805 in github.com/Lakhankumawat/LearnCPP

↓ 99 callersMethodsize
S-Stack/StacksUsingQueue.cpp:56
↓ 91 callersMethodpush
push expensive
S-Stack/StacksUsingQueue.cpp:24
↓ 71 callersMethodpop
pop easy
S-Stack/StacksUsingQueue.cpp:39
↓ 57 callersMethodtop
S-Stack/StacksUsingQueue.cpp:48
↓ 53 callersMethodempty
RETURNS TRUE IF BOTH STACKS ARE EMPTY
Q-Queue/QueueUsingStacks.cpp:37
↓ 20 callersMethodinsert
Inserting Node
T-Trie/CountPrefix.cpp:27
↓ 15 callersFunctionmax
function to get maximum of two integers
T-Tree/B-BinarySearchTree/AVL.cpp:17
↓ 14 callersMethodfind
If find does not make sense then you need to watch DSU videos
G-Graphs/M-MinimumSpanningTree/kruskalDSU.cpp:29
↓ 14 callersFunctionheight
function to get the height of the tree
T-Tree/B-BinarySearchTree/AVL.cpp:23
↓ 10 callersFunctionfind
================================================== DSU FIND FUNCTION (path compression) ===================================================*/
G-Graphs/M-MinimumSpanningTree/Boruvka's_algorithm.cpp:7
↓ 10 callersFunctionswap
Function to swap two numbers.
A-Array/SortingInWaveForm.cpp:6
↓ 9 callersFunctioninsert
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 callersFunctionnewNode
T-Tree/T-TreeTraversals/RightSideViewOfBT.cpp:20
↓ 9 callersFunctionprint
S-STL/C-Containers/V-Vector/Vector_Operations.cpp:7
↓ 8 callersMethoddisplayValues
O-OOPS/OperatorOverloadingBinary.cpp:7
↓ 8 callersFunctionmax
Utility function to get max of 2 integers
D-DynamicProgramming/ShortestCommonSuperSequence.cpp:8
↓ 7 callersFunctioninsertNode
T-Tree/T-TreeTraversals/preorderTraversal.cpp:38
↓ 7 callersFunctioninsertNode
T-Tree/T-TreeTraversals/inorderTraversal.cpp:38
↓ 7 callersFunctioninsertNode
T-Tree/T-TreeTraversals/postorderTraversal.cpp:38
↓ 7 callersFunctioninsertNode
T-Tree/B-BinarySearchTree/BST.cpp:37
↓ 7 callersFunctionprint
S-STL/C-Containers/L-List/Lists-Operations.cpp:6
↓ 6 callersMethodaddEdge
G-Graphs/T-TraversalInGraphs/DepthFirstSearch.cpp:15
↓ 6 callersFunctiongetBalance
function to get balance factor
T-Tree/B-BinarySearchTree/AVL.cpp:76
↓ 6 callersFunctionleftRotate
function to left rotate subtree
T-Tree/B-BinarySearchTree/AVL.cpp:59
↓ 6 callersFunctionrightRotate
function to right rotate subtree
T-Tree/B-BinarySearchTree/AVL.cpp:42
↓ 6 callersFunctionsolve
G-Graphs/GraphColoring.cpp:6
↓ 6 callersFunctionswap
S-SortingAlgorithms/QuickSort.cpp:19
↓ 5 callersFunctionadd_node
* @brief add_node function are create new node * * @param data * @return struct Node* */
T-Tree/T-TreeTraversals/MorrisTraversal.cpp:73
↓ 5 callersFunctiondisplayLL
L-LinkedList/S-SinglyLinkedList/LinkedListOperations.cpp:27
↓ 5 callersFunctionnewNode
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 callersFunctionpush
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 callersFunctionreverse
function that reverses the given stack
S-Stack/ReverseStack.cpp:31
↓ 5 callersFunctiontraversal
A-Array/arrayOperations.cpp:28
↓ 5 callersFunctionvalue_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 callersMethodaddEdge
G-Graphs/I-Implementation/AdjListUsingHashmap.cpp:12
↓ 4 callersMethodadd_edge
G-Graphs/I-Implementation/AdjacencyList.cpp:15
↓ 4 callersMethoddequeue
Q-Queue/QueueUsingStacks.cpp:17
↓ 4 callersFunctiondisplay
G-Graphs/I-Implementation/PathMatrix.cpp:102
↓ 4 callersMethodenqueue
SIMPLY PUSH THE ELEMENT IN STACK1
Q-Queue/QueueUsingStacks.cpp:13
↓ 4 callersMethodget
L-LinkedList/LRU Cache/LRUCache.cpp:51
↓ 4 callersFunctioninsertNode
utility function to insert node in the list
L-LinkedList/S-SinglyLinkedList/DetectCycleInLinkedList.cpp:15
↓ 4 callersMethodput
L-LinkedList/LRU Cache/LRUCache.cpp:67
↓ 4 callersFunctionshowlist
S-STL/C-Containers/L-List/Lists.cpp:8
↓ 3 callersMethodaddEdge
G-Graphs/T-TraversalInGraphs/BreadthFirstSearch.cpp:15
↓ 3 callersFunctiondisplay
G-Graphs/I-Implementation/DelAddEdgeAdjacencyMatrix.cpp:44
↓ 3 callersFunctiondisplay_1
------------This function displys the contents of stack 1---------------------------------*/
S-Stack/twoStackArray.cpp:66
↓ 3 callersFunctiondisplay_2
------------This function displays the contents of stack 2--------------------------------*/
S-Stack/twoStackArray.cpp:81
↓ 3 callersFunctionfunc_swap
T is the template argument that accepts different data types
T-Template/FunctionTemplate.cpp:5
↓ 3 callersFunctiongetMid
A utility function to get the middle index from corner indexes.
A-AdvancedDataStructures/SegmentTree.cpp:7
↓ 3 callersMethodgetProt
function to access protected member from Base
O-OOPS/I-Inheritance/AccessModifiersInInheritance.cpp:25
↓ 3 callersFunctionrepeat
E-Extra/turtle.cpp:9
↓ 3 callersMethodreverse
Function to reverse the linked list
L-LinkedList/S-SinglyLinkedList/ReverseLinkedList.cpp:23
↓ 3 callersMethodshow
prints deque if it is not empty
Q-Queue/DequeImplementation.cpp:72
↓ 2 callersFunctionINSERTintoBST
Insertion Values into BST
T-Tree/B-BinarySearchTree/Floor Value in BST/FloorValueBST.cpp:21
↓ 2 callersMethodPrintPrivate
Miscellaneous/F-Friend/FriendFunction.cpp:12
↓ 2 callersFunctionProvideNode
Provides the node whenever new node encounters.
T-Trie/TrieImplementation.cpp:12
↓ 2 callersFunctioncalculateGCD
-------------Recursive method for the calculation of GCD----------------------------*/
R-Recursion/RecursiveGCDandLCM.cpp:7
↓ 2 callersFunctiondisplay
T-Tree/G-GenricTree/MirrorOfGenricTree.cpp:23
↓ 2 callersFunctionfindparent
To find the parent of a given index recursively
G-Graphs/M-MinimumSpanningTree/Kruskal.cpp:18
↓ 2 callersFunctionfunA
R-Recursion/Types of Recursion/IndirectRecursion.cpp:7
↓ 2 callersMethodgetMaxval
T-Template/ClassTemplate.cpp:14
↓ 2 callersMethodgetPub
function to access private member
O-OOPS/I-Inheritance/AccessModifiersInInheritance.cpp:59
↓ 2 callersFunctiongetSum
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 callersMethodgetdata
data members of base class created
O-OOPS/I-Inheritance/Hierarchical-Inheritance.cpp:8
↓ 2 callersMethodgetdata_derived
O-OOPS/I-Inheritance/Hierarchical-Inheritance.cpp:20
↓ 2 callersFunctionhashFunction
H-HashTable/HashCustomers.cpp:19
↓ 2 callersFunctionheapify
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 callersFunctionheapify
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 callersFunctioninsert
H-Heap/MinHeap.cpp:12
↓ 2 callersFunctionmyPow_h
D-DivideAndConquerAlgorithms/Pow.cpp:7
↓ 2 callersFunctionnewNode
--------------------------A function for allocating new tree node-----------------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:16
↓ 2 callersFunctionnodetopath
T-Tree/G-GenricTree/MinimumDistanceBetweenNodeGT.cpp:44
↓ 2 callersFunctionpop
------------------------A pop function for remoing nodes from the stack-----------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:43
↓ 2 callersFunctionpreOrder
function to print preorder traversal of the tree.
T-Tree/B-BinarySearchTree/AVL.cpp:218
↓ 2 callersFunctionprecedence_comparision
to comparare the precedence of operaters
S-Stack/InfixToPostfix.cpp:9
↓ 2 callersFunctionprecedence_comparision
to comparare the precedence of operaters
S-Stack/InfixToPrefix.cpp:8
↓ 2 callersFunctionprint
Print buckets
S-SortingAlgorithms/BucketSort.cpp:155
↓ 2 callersFunctionprint
print list
L-LinkedList/Clone a List with Random pointers/LinkedListClone.cpp:17
↓ 2 callersFunctionprint
H-HashMap/Map.cpp:13
↓ 2 callersMethodprint
Function to print the linked list
L-LinkedList/S-SinglyLinkedList/ReverseLinkedList.cpp:38
↓ 2 callersFunctionprintArray
* Printing the array * Input: array to be printed, size of the array */
S-SortingAlgorithms/ShellSort.cpp:55
↓ 2 callersFunctionprintArray
method to print the array
A-Array/Sort_0_1_2.cpp:7
↓ 2 callersFunctionprintBuckets
S-SortingAlgorithms/BucketSort.cpp:166
↓ 2 callersFunctionprintList
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 callersFunctionprintVec
B-BitManipulation/SubsetsGeneration.cpp:29
↓ 2 callersFunctionpush
--------------------------A push function for nodes into the stack---------------------*/
T-Tree/T-TreeTraversals/expressionTreeTraversal.cpp:30
↓ 2 callersMethodpush
Function to Insert values to Linked List
L-LinkedList/S-SinglyLinkedList/ReverseLinkedList.cpp:46
↓ 2 callersFunctionqueri
the query function
T-Tree/F-FenwickTree/K_Query.cpp:30
↓ 2 callersFunctionsearch
Returns true if key presents else false
T-Trie/TrieImplementation.cpp:42
↓ 2 callersFunctionshowRes
For Printing onto Screen
S-SortingAlgorithms/BucketSort.cpp:178
↓ 1 callersFunctionBoruvkas_function
======================================================== BORUVKA'S ALGORITHM MAIN FUNCTION ===============================================
G-Graphs/M-MinimumSpanningTree/Boruvka's_algorithm.cpp:41
↓ 1 callersFunctionBst
function BST of type class bst
T-Tree/B-BinaryTree/LargestBSTinBT.cpp:57
↓ 1 callersFunctionBucketSort
Sorting function
S-SortingAlgorithms/BucketSort.cpp:26
↓ 1 callersFunctionCelebrityProblem
S-Stack/TheCelebrityProblem/CelebrityProblem.cpp:4
↓ 1 callersFunctionChangePrivate
Miscellaneous/F-Friend/FriendFunction.cpp:17
↓ 1 callersFunctionDFS
G-Graphs/ArticulationPoints.cpp:9
↓ 1 callersFunctionDelete
L-LinkedList/D-DoublyLinkedList/DoublyLinkedListOperations.cpp:29
↓ 1 callersFunctionDelete
Q-Queue/CircularQueueUsingLinkedList.cpp:31
↓ 1 callersFunctionDelete
Q-Queue/CircularQueueUsingArray.cpp:20
↓ 1 callersFunctionDelete
Q-Queue/QueueUsingArray.cpp:14
next →1–100 of 805, ranked by callers