Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anupam-kumar-krishnan/Competitive_Programming
/ functions
Functions
2,161 in github.com/anupam-kumar-krishnan/Competitive_Programming
⨍
Functions
2,161
◇
Types & classes
350
↓ 1 callers
Function
main
DSA 450/Arrays/5. Move all negative numbers to beginning.cpp:22
↓ 1 callers
Function
main
Basic Programming/Insertion_Sort.cpp:34
↓ 1 callers
Function
majorityElement
All Algorithms/Boyer_Moore_Majority_Voting_Algorithm.cpp:4
↓ 1 callers
Function
makeCoprime
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 callers
Method
matrixMultiplication
DSA 450/Dynamic Programming/Matrix_Chain_Multiplication_DP.cpp:22
↓ 1 callers
Method
maxLength
All Data Structures/Stack/Longest_valid_Parentheses.cpp:16
↓ 1 callers
Function
maxProfit
All Data Structures/Arrays/26) Maximum profit by buying and selling a share at most twice.cpp:4
↓ 1 callers
Method
maxProfit
Coding Platforms(codechef,codeforces,etc)/LeetCode/Best Time to Buy and Sell Stock III.cpp:47
↓ 1 callers
Method
maxSubArraySum
(int a[])
All Algorithms/Kadane's Algorithm/KadaneAlgorithm.java:11
↓ 1 callers
Function
maxSubarraySum
All Data Structures/Arrays/8) Kadane's Algorithm.cpp:5
↓ 1 callers
Method
maxSubarraySum
DSA 450/Arrays/8. Kadane's Algorithm.cpp:6
↓ 1 callers
Method
maxSubarraySum
DSA 450/Arrays/13.Kadane's Algorithm.cpp:5
↓ 1 callers
Function
maxWater
DSA 450/Arrays/29. Trapping Rain Water.cpp:4
↓ 1 callers
Method
max_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 callers
Function
maximum
All Data Structures/Sorting/CountSort.cpp:15
↓ 1 callers
Function
maximumProfit
All Algorithms/Dynamic Programming/LIS/Best Time to Buy and Sell Stock with K Transactions.cpp:6
↓ 1 callers
Function
maximumProfit
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stock.cpp:6
↓ 1 callers
Function
maxnode
DSA 450/Binary Search Tree/Bst-implementaion.cpp:150
↓ 1 callers
Function
median
DSA 450/Matrix/MedianRowWiseSorted.cpp:5
↓ 1 callers
Function
merge
All Algorithms/Sorting Algorithm/merge_sort.cpp:3
↓ 1 callers
Function
merge
All Algorithms/Sorting Algorithm/merge_sort.c.c:5
↓ 1 callers
Function
merge
(leftList, rightList)
All Algorithms/Sorting Algorithm in Python/mergeSort.py:36
↓ 1 callers
Function
merge
(left, right)
All Algorithms/Sorting Algorithm in Python/tim_sort.py:16
↓ 1 callers
Method
merge
(ListNode left, ListNode right)
Coding Platforms(codechef,codeforces,etc)/LeetCode/merge k sorted lists.java:34
↓ 1 callers
Method
merge
Coding Platforms(codechef,codeforces,etc)/Codeforces/920E.cpp:44
↓ 1 callers
Function
mergeIntervals
Basic Programming/Merge overlapping intervals.cpp:8
↓ 1 callers
Function
mergeSort
All Data Structures/Sorting/mergeSort.cpp:42
↓ 1 callers
Function
mergeSort
All Algorithms/Sorting Algorithm/merge_sort.cpp:54
↓ 1 callers
Function
mergeSort
All Algorithms/Sorting Algorithm/merge_sort.c.c:44
↓ 1 callers
Function
mergeSort
(sortingList)
All Algorithms/Sorting Algorithm in Python/mergeSort.py:24
↓ 1 callers
Function
mergeSorted
Merge function merges the sorted runs
All Algorithms/Sorting Algorithm/tim_sort.cpp:24
↓ 1 callers
Function
minDistance
All Data Structures/GRAPHS/dijkstra.cpp:10
↓ 1 callers
Function
minDistance
All Algorithms/Graph Algorithm/Dijkstra's Algorithm.cpp:6
↓ 1 callers
Function
minJumps
All Data Structures/Arrays/10) Minimum number of jumps.cpp:4
↓ 1 callers
Function
minKey
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 callers
Function
minMax
* 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 callers
Function
minSwap
All Data Structures/Arrays/33) Minimum swaps and K together.cpp:25
↓ 1 callers
Function
minSwap
DSA 450/Arrays/33.Minimum_no_required_palindrome.cpp:4
↓ 1 callers
Function
mirror
Accolite/Binary Tree into its Mirror Tree.cpp:24
↓ 1 callers
Function
modInverse
All Algorithms/String algorithms/hashing.cpp:23
↓ 1 callers
Method
mod_expo
All Algorithms/Algebraic algorithms/ModularExponentiation.cpp:21
↓ 1 callers
Function
modify
* Given a string, remove spaces from it. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Remove_space.cpp:22
↓ 1 callers
Function
moveZeroes
Coding Platforms(codechef,codeforces,etc)/LeetCode/Move_Zeroes.cpp:4
↓ 1 callers
Function
multiply
All Algorithms/strassen.cpp:36
↓ 1 callers
Function
newnode
DSA 450/Binary Search Tree/Bst-implementaion.cpp:189
↓ 1 callers
Method
nextLargerElement
Function to find the next greater element for each element of the array.
All Data Structures/Stack/Next_Greater_Element.cpp:15
↓ 1 callers
Method
nextPermutation
All Data Structures/Arrays/next_permutation.cpp:12
↓ 1 callers
Function
nthTerm
* 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 callers
Method
numberOfArithmeticSlices
Coding Platforms(codechef,codeforces,etc)/LeetCode/Arithmetic_Slices.cpp:6
↓ 1 callers
Function
numsSameConsecDiff
All Algorithms/Graph Algorithm/algo.cpp:17
↓ 1 callers
Method
ok
All Algorithms/Graph Algorithm/2 SAT.cpp:63
↓ 1 callers
Function
orangesRotting
All Data Structures/GRAPHS/rottenOranges.cpp:17
↓ 1 callers
Function
pairs
Coding Platforms(codechef,codeforces,etc)/HackerRank/Pairs.cpp:17
↓ 1 callers
Function
participation
All Algorithms/Sorting Algorithm/Quick_sort/Quick_sort.cpp:10
↓ 1 callers
Function
partition
All Data Structures/Arrays/3) Kth smallest Element.cpp:57
↓ 1 callers
Function
partition
All Algorithms/Sorting Algorithm/quick_sort.cpp:12
↓ 1 callers
Function
partition
(nums, low, high)
All Algorithms/Sorting Algorithm in Python/quickSort.py:6
↓ 1 callers
Method
pir
(TreeNode root, int low, int high)
Coding Platforms(codechef,codeforces,etc)/LeetCode/RangeSumBST.java:30
↓ 1 callers
Method
pop
returns poped element from stack*/
All Data Structures/Stack/Get_minimum_element_from_stack.cpp:39
↓ 1 callers
Function
popFront
All Data Structures/Queues/double-ended_queue(deque) .c:97
↓ 1 callers
Function
popRear
All Data Structures/Queues/double-ended_queue(deque) .c:112
↓ 1 callers
Method
postorder
All Data Structures/TREE/AVL.cpp:133
↓ 1 callers
Function
power
All Algorithms/String algorithms/hashing.cpp:8
↓ 1 callers
Function
power
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/Xor Equality.cpp:5
↓ 1 callers
Function
power
Coding Platforms(codechef,codeforces,etc)/Codeforces/1228D.cpp:11
↓ 1 callers
Function
power
Coding Platforms(codechef,codeforces,etc)/Codeforces/B_Special_Numbers.cpp:8
↓ 1 callers
Method
preorder
All Data Structures/TREE/AVL.cpp:126
↓ 1 callers
Function
primMST
Function to construct and print MST for a graph represented using adjacency matrix representation
All Data Structures/TREE/Prim_Algorithm.cpp:37
↓ 1 callers
Function
prime
Coding Platforms(codechef,codeforces,etc)/CodeChef/Practice/Primality Test.cpp:3
↓ 1 callers
Function
print2DArray
Basic Programming/Print 2-D array.cpp:4
↓ 1 callers
Function
printArr
Printing the solution
All Data Structures/GRAPHS/BellmanfordAlgo.cpp:31
↓ 1 callers
Function
printArray
Function to print an array
All Data Structures/Sorting/Insertion_sort.cpp:7
↓ 1 callers
Function
printArray
Print an array
All Data Structures/Sorting/Heap_Sort.cpp:41
↓ 1 callers
Function
printArray
All Data Structures/Arrays/1) Reverse the Array.cpp:17
↓ 1 callers
Function
printArray
A utility function to print an array of size n
All Algorithms/insertion_sort.cpp:24
↓ 1 callers
Function
printArray
Prints the array */
All Algorithms/Sorting Algorithm/Cocktailsort.cpp:59
↓ 1 callers
Function
printArray
function to print array
All Algorithms/Sorting Algorithm/quick_sort.cpp:44
↓ 1 callers
Function
printArray
DSA 450/Arrays/5. Move all negative numbers to beginning.cpp:16
↓ 1 callers
Method
printArray
(int nums[])
All Algorithms/SortColors.java:37
↓ 1 callers
Function
printDiamond
Basic Programming/All_Patterns.c:118
↓ 1 callers
Function
printFullPyramid
Basic Programming/All_Patterns.c:28
↓ 1 callers
Function
printHollowDiamond
Basic Programming/All_Patterns.c:217
↓ 1 callers
Function
printHollowFullPyramid
Basic Programming/All_Patterns.c:183
↓ 1 callers
Function
printHollowHourglass
Basic Programming/All_Patterns.c:247
↓ 1 callers
Function
printHollowInvertedFullPyramid
Basic Programming/All_Patterns.c:200
↓ 1 callers
Function
printHollowSquare
Basic Programming/All_Patterns.c:170
↓ 1 callers
Function
printHourglass
Basic Programming/All_Patterns.c:148
↓ 1 callers
Function
printInvertedFullPyramid
Basic Programming/All_Patterns.c:89
↓ 1 callers
Function
printInvertedLeftHalfPyramid
Basic Programming/All_Patterns.c:73
↓ 1 callers
Function
printInvertedRightHalfPyramid
Basic Programming/All_Patterns.c:45
↓ 1 callers
Function
printLeftHalfPyramid
Basic Programming/All_Patterns.c:12
↓ 1 callers
Function
printList
All Data Structures/Singly_LL/Rotate_A_Linked_List.cpp:72
↓ 1 callers
Function
printList
Function to print Nodes in a given linked list */
All Data Structures/Singly_LL/merge_two_sorted_ll.cpp:21
↓ 1 callers
Function
printList
DSA 450/Linked List/Merge Sort for Linked Lists.cpp:82
↓ 1 callers
Function
printList
DSA 450/Linked List/addTwoNumbersRepresentedByLinkedList.cpp:34
↓ 1 callers
Function
printMST
A utility function to print the constructed MST stored in parent[]
All Data Structures/TREE/Prim_Algorithm.cpp:27
↓ 1 callers
Function
printMatrix
All Data Structures/GRAPHS/FloydWarshall.cpp:33
↓ 1 callers
Function
printMatrix
All Algorithms/strassen.cpp:234
↓ 1 callers
Method
printMiddle
()
DSA 450/Linked List/middle of linked list.java:43
↓ 1 callers
Method
printNode
()
DSA 450/Linked List/middle of linked list.java:22
← previous
next →
501–600 of 2,161, ranked by callers