MCPcopy Create free account

hub / github.com/anupam-kumar-krishnan/Competitive_Programming / functions

Functions2,161 in github.com/anupam-kumar-krishnan/Competitive_Programming

↓ 1 callersFunctionmain
DSA 450/Arrays/5. Move all negative numbers to beginning.cpp:22
↓ 1 callersFunctionmain
Basic Programming/Insertion_Sort.cpp:34
↓ 1 callersFunctionmajorityElement
All Algorithms/Boyer_Moore_Majority_Voting_Algorithm.cpp:4
↓ 1 callersFunctionmakeCoprime
Function to find the minimum number of increments/decrements operations required to make both the numbers non-coprime
Coding Platforms(codechef,codeforces,etc)/CodeChef/July Cook-off/Chef and GCD.cpp:9
↓ 1 callersMethodmatrixMultiplication
DSA 450/Dynamic Programming/Matrix_Chain_Multiplication_DP.cpp:22
↓ 1 callersMethodmaxLength
All Data Structures/Stack/Longest_valid_Parentheses.cpp:16
↓ 1 callersFunctionmaxProfit
All Data Structures/Arrays/26) Maximum profit by buying and selling a share at most twice.cpp:4
↓ 1 callersMethodmaxProfit
Coding Platforms(codechef,codeforces,etc)/LeetCode/Best Time to Buy and Sell Stock III.cpp:47
↓ 1 callersMethodmaxSubArraySum
(int a[])
All Algorithms/Kadane's Algorithm/KadaneAlgorithm.java:11
↓ 1 callersFunctionmaxSubarraySum
All Data Structures/Arrays/8) Kadane's Algorithm.cpp:5
↓ 1 callersMethodmaxSubarraySum
DSA 450/Arrays/8. Kadane's Algorithm.cpp:6
↓ 1 callersMethodmaxSubarraySum
DSA 450/Arrays/13.Kadane's Algorithm.cpp:5
↓ 1 callersFunctionmaxWater
DSA 450/Arrays/29. Trapping Rain Water.cpp:4
↓ 1 callersMethodmax_of_subarrays
Function to find maximum of each subarray of size k.
DSA 450/Arrays/Maximum of all subarrays of size k.cpp:12
↓ 1 callersFunctionmaximum
All Data Structures/Sorting/CountSort.cpp:15
↓ 1 callersFunctionmaximumProfit
All Algorithms/Dynamic Programming/LIS/Best Time to Buy and Sell Stock with K Transactions.cpp:6
↓ 1 callersFunctionmaximumProfit
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stock.cpp:6
↓ 1 callersFunctionmaxnode
DSA 450/Binary Search Tree/Bst-implementaion.cpp:150
↓ 1 callersFunctionmedian
DSA 450/Matrix/MedianRowWiseSorted.cpp:5
↓ 1 callersFunctionmerge
All Algorithms/Sorting Algorithm/merge_sort.cpp:3
↓ 1 callersFunctionmerge
All Algorithms/Sorting Algorithm/merge_sort.c.c:5
↓ 1 callersFunctionmerge
(leftList, rightList)
All Algorithms/Sorting Algorithm in Python/mergeSort.py:36
↓ 1 callersFunctionmerge
(left, right)
All Algorithms/Sorting Algorithm in Python/tim_sort.py:16
↓ 1 callersMethodmerge
(ListNode left, ListNode right)
Coding Platforms(codechef,codeforces,etc)/LeetCode/merge k sorted lists.java:34
↓ 1 callersMethodmerge
Coding Platforms(codechef,codeforces,etc)/Codeforces/920E.cpp:44
↓ 1 callersFunctionmergeIntervals
Basic Programming/Merge overlapping intervals.cpp:8
↓ 1 callersFunctionmergeSort
All Data Structures/Sorting/mergeSort.cpp:42
↓ 1 callersFunctionmergeSort
All Algorithms/Sorting Algorithm/merge_sort.cpp:54
↓ 1 callersFunctionmergeSort
All Algorithms/Sorting Algorithm/merge_sort.c.c:44
↓ 1 callersFunctionmergeSort
(sortingList)
All Algorithms/Sorting Algorithm in Python/mergeSort.py:24
↓ 1 callersFunctionmergeSorted
Merge function merges the sorted runs
All Algorithms/Sorting Algorithm/tim_sort.cpp:24
↓ 1 callersFunctionminDistance
All Data Structures/GRAPHS/dijkstra.cpp:10
↓ 1 callersFunctionminDistance
All Algorithms/Graph Algorithm/Dijkstra's Algorithm.cpp:6
↓ 1 callersFunctionminJumps
All Data Structures/Arrays/10) Minimum number of jumps.cpp:4
↓ 1 callersFunctionminKey
A utility function to find the vertex with minimum key value, from the set of vertices not yet included in MST
All Data Structures/TREE/Prim_Algorithm.cpp:13
↓ 1 callersFunctionminMax
* Given an array A of size N of integers. Your task is to find the minimum and maximum elements in the array. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_Min_Max_in_Array.cpp:22
↓ 1 callersFunctionminSwap
All Data Structures/Arrays/33) Minimum swaps and K together.cpp:25
↓ 1 callersFunctionminSwap
DSA 450/Arrays/33.Minimum_no_required_palindrome.cpp:4
↓ 1 callersFunctionmirror
Accolite/Binary Tree into its Mirror Tree.cpp:24
↓ 1 callersFunctionmodInverse
All Algorithms/String algorithms/hashing.cpp:23
↓ 1 callersMethodmod_expo
All Algorithms/Algebraic algorithms/ModularExponentiation.cpp:21
↓ 1 callersFunctionmodify
* Given a string, remove spaces from it. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Remove_space.cpp:22
↓ 1 callersFunctionmoveZeroes
Coding Platforms(codechef,codeforces,etc)/LeetCode/Move_Zeroes.cpp:4
↓ 1 callersFunctionmultiply
All Algorithms/strassen.cpp:36
↓ 1 callersFunctionnewnode
DSA 450/Binary Search Tree/Bst-implementaion.cpp:189
↓ 1 callersMethodnextLargerElement
Function to find the next greater element for each element of the array.
All Data Structures/Stack/Next_Greater_Element.cpp:15
↓ 1 callersMethodnextPermutation
All Data Structures/Arrays/next_permutation.cpp:12
↓ 1 callersFunctionnthTerm
* Given the first 2 terms A1 and A2 of an Arithmetic Series.Find the Nth term of the series. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Series_AP.cpp:22
↓ 1 callersMethodnumberOfArithmeticSlices
Coding Platforms(codechef,codeforces,etc)/LeetCode/Arithmetic_Slices.cpp:6
↓ 1 callersFunctionnumsSameConsecDiff
All Algorithms/Graph Algorithm/algo.cpp:17
↓ 1 callersMethodok
All Algorithms/Graph Algorithm/2 SAT.cpp:63
↓ 1 callersFunctionorangesRotting
All Data Structures/GRAPHS/rottenOranges.cpp:17
↓ 1 callersFunctionpairs
Coding Platforms(codechef,codeforces,etc)/HackerRank/Pairs.cpp:17
↓ 1 callersFunctionparticipation
All Algorithms/Sorting Algorithm/Quick_sort/Quick_sort.cpp:10
↓ 1 callersFunctionpartition
All Data Structures/Arrays/3) Kth smallest Element.cpp:57
↓ 1 callersFunctionpartition
All Algorithms/Sorting Algorithm/quick_sort.cpp:12
↓ 1 callersFunctionpartition
(nums, low, high)
All Algorithms/Sorting Algorithm in Python/quickSort.py:6
↓ 1 callersMethodpir
(TreeNode root, int low, int high)
Coding Platforms(codechef,codeforces,etc)/LeetCode/RangeSumBST.java:30
↓ 1 callersMethodpop
returns poped element from stack*/
All Data Structures/Stack/Get_minimum_element_from_stack.cpp:39
↓ 1 callersFunctionpopFront
All Data Structures/Queues/double-ended_queue(deque) .c:97
↓ 1 callersFunctionpopRear
All Data Structures/Queues/double-ended_queue(deque) .c:112
↓ 1 callersMethodpostorder
All Data Structures/TREE/AVL.cpp:133
↓ 1 callersFunctionpower
All Algorithms/String algorithms/hashing.cpp:8
↓ 1 callersFunctionpower
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/Xor Equality.cpp:5
↓ 1 callersFunctionpower
Coding Platforms(codechef,codeforces,etc)/Codeforces/1228D.cpp:11
↓ 1 callersFunctionpower
Coding Platforms(codechef,codeforces,etc)/Codeforces/B_Special_Numbers.cpp:8
↓ 1 callersMethodpreorder
All Data Structures/TREE/AVL.cpp:126
↓ 1 callersFunctionprimMST
Function to construct and print MST for a graph represented using adjacency matrix representation
All Data Structures/TREE/Prim_Algorithm.cpp:37
↓ 1 callersFunctionprime
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/Primality Test.cpp:3
↓ 1 callersFunctionprint2DArray
Basic Programming/Print 2-D array.cpp:4
↓ 1 callersFunctionprintArr
Printing the solution
All Data Structures/GRAPHS/BellmanfordAlgo.cpp:31
↓ 1 callersFunctionprintArray
Function to print an array
All Data Structures/Sorting/Insertion_sort.cpp:7
↓ 1 callersFunctionprintArray
Print an array
All Data Structures/Sorting/Heap_Sort.cpp:41
↓ 1 callersFunctionprintArray
All Data Structures/Arrays/1) Reverse the Array.cpp:17
↓ 1 callersFunctionprintArray
A utility function to print an array of size n
All Algorithms/insertion_sort.cpp:24
↓ 1 callersFunctionprintArray
Prints the array */
All Algorithms/Sorting Algorithm/Cocktailsort.cpp:59
↓ 1 callersFunctionprintArray
function to print array
All Algorithms/Sorting Algorithm/quick_sort.cpp:44
↓ 1 callersFunctionprintArray
DSA 450/Arrays/5. Move all negative numbers to beginning.cpp:16
↓ 1 callersMethodprintArray
(int nums[])
All Algorithms/SortColors.java:37
↓ 1 callersFunctionprintDiamond
Basic Programming/All_Patterns.c:118
↓ 1 callersFunctionprintFullPyramid
Basic Programming/All_Patterns.c:28
↓ 1 callersFunctionprintHollowDiamond
Basic Programming/All_Patterns.c:217
↓ 1 callersFunctionprintHollowFullPyramid
Basic Programming/All_Patterns.c:183
↓ 1 callersFunctionprintHollowHourglass
Basic Programming/All_Patterns.c:247
↓ 1 callersFunctionprintHollowInvertedFullPyramid
Basic Programming/All_Patterns.c:200
↓ 1 callersFunctionprintHollowSquare
Basic Programming/All_Patterns.c:170
↓ 1 callersFunctionprintHourglass
Basic Programming/All_Patterns.c:148
↓ 1 callersFunctionprintInvertedFullPyramid
Basic Programming/All_Patterns.c:89
↓ 1 callersFunctionprintInvertedLeftHalfPyramid
Basic Programming/All_Patterns.c:73
↓ 1 callersFunctionprintInvertedRightHalfPyramid
Basic Programming/All_Patterns.c:45
↓ 1 callersFunctionprintLeftHalfPyramid
Basic Programming/All_Patterns.c:12
↓ 1 callersFunctionprintList
All Data Structures/Singly_LL/Rotate_A_Linked_List.cpp:72
↓ 1 callersFunctionprintList
Function to print Nodes in a given linked list */
All Data Structures/Singly_LL/merge_two_sorted_ll.cpp:21
↓ 1 callersFunctionprintList
DSA 450/Linked List/Merge Sort for Linked Lists.cpp:82
↓ 1 callersFunctionprintList
DSA 450/Linked List/addTwoNumbersRepresentedByLinkedList.cpp:34
↓ 1 callersFunctionprintMST
A utility function to print the constructed MST stored in parent[]
All Data Structures/TREE/Prim_Algorithm.cpp:27
↓ 1 callersFunctionprintMatrix
All Data Structures/GRAPHS/FloydWarshall.cpp:33
↓ 1 callersFunctionprintMatrix
All Algorithms/strassen.cpp:234
↓ 1 callersMethodprintMiddle
()
DSA 450/Linked List/middle of linked list.java:43
↓ 1 callersMethodprintNode
()
DSA 450/Linked List/middle of linked list.java:22
← previousnext →501–600 of 2,161, ranked by callers