MCPcopy Create free account

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

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

↓ 1 callersMethodBFS
All Data Structures/GRAPHS/BFS_Explanation_Graph.cpp:40
↓ 1 callersFunctionBellmanFord
All Data Structures/GRAPHS/BellmanfordAlgo.cpp:39
↓ 1 callersFunctionBinSort
All Algorithms/Sorting Algorithm/Bucket-BinSort.cpp:58
↓ 1 callersFunctionBubbleSort
All Algorithms/Sorting Algorithm/BubbleSort.cpp:23
↓ 1 callersFunctionBubblsort
All Data Structures/Sorting/Bubble-sort.cpp:3
↓ 1 callersFunctionCeilIndex
Coding Platforms(codechef,codeforces,etc)/Codeforces/1228D.cpp:223
↓ 1 callersFunctionCocktailSort
Sorts arrar a[0..n-1] using Cocktail sort
All Algorithms/Sorting Algorithm/Cocktailsort.cpp:6
↓ 1 callersMethodCreateTree
All Data Structures/TREE/Tree.cpp:23
↓ 1 callersMethodDFSUtil
All Data Structures/GRAPHS/kosaraju's_algo.cpp:34
↓ 1 callersFunctionDNFsort
All Algorithms/Sorting Algorithm/DNF_sort/dnf_sort.cpp:10
↓ 1 callersFunctionDelete
All Data Structures/CircularLinkedList/circular_doubly_linked_list.c:99
↓ 1 callersFunctionDelete
All Data Structures/CircularLinkedList/circular_singly_linked_list.c:97
↓ 1 callersFunctionDelete
All Algorithms/Sorting Algorithm/Bucket-BinSort.cpp:50
↓ 1 callersMethodDelete
All Data Structures/TREE/BST.cpp:160
↓ 1 callersMethodDelete
All Data Structures/TREE/DeletionAVL.cpp:197
↓ 1 callersFunctionDequeue
implement dequeue method by pushing all elements from stack 1 into stack 2, which reverses the order and then popping from stack 2
Accolite/Implement a queue using two stacks.cpp:13
↓ 1 callersFunctionFibonacciSearch
All Algorithms/Searching Algorithm/FibonacciSearch.cpp:3
↓ 1 callersFunctionFrontBackSplit
DSA 450/Linked List/Merge Sort for Linked Lists.cpp:59
↓ 1 callersFunctionHighest_Marks_In_List
All Data Structures/Singly_LL/menu_based_singly_linked_list.cpp:439
↓ 1 callersMethodInPre
All Data Structures/TREE/BST.cpp:218
↓ 1 callersMethodInSucc
All Data Structures/TREE/BST.cpp:227
↓ 1 callersMethodInorder
All Data Structures/TREE/Tree.cpp:68
↓ 1 callersFunctionInsert
All Algorithms/Sorting Algorithm/Bucket-BinSort.cpp:34
↓ 1 callersFunctionInsertNode
DSA 450/Binary Trees/insertion.cpp:29
↓ 1 callersFunctionInsertionSort
All Algorithms/Sorting Algorithm/InsertionSort.cpp:17
↓ 1 callersFunctionIsPerfect
* Given an array of size N and you have to tell whether the array is perfect or not. An array is said to be perfect if it's reverse array matches the
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Perfect_Arrays.cpp:22
↓ 1 callersFunctionIterativeMergeSort
All Algorithms/Sorting Algorithm/IterativeMergeSort.cpp:40
↓ 1 callersFunctionKMPSearch
All Algorithms/KMP_search_algorithm.cpp:6
↓ 1 callersFunctionKruskalsMCST
All Data Structures/GRAPHS/Kruskal'sMinSpanningTree.cpp:44
↓ 1 callersFunctionLCS_Length
All Algorithms/Dynamic Programming/LIS/LongestCommonSubSeq.cpp:28
↓ 1 callersFunctionLongestPalindromeSubString
All Algorithms/String algorithms/manacher's algorihm.cpp:26
↓ 1 callersFunctionLowest_Marks_In_List
All Data Structures/Singly_LL/menu_based_singly_linked_list.cpp:457
↓ 1 callersFunctionMax
All Algorithms/Sorting Algorithm/Bucket-BinSort.cpp:17
↓ 1 callersFunctionMaximumSum
Efficient Solution.
DSA 450/Arrays/35. MaximumSumOfSubarray.cpp:19
↓ 1 callersFunctionMerge
All Algorithms/Sorting Algorithm/RecursiveMergeSort.cpp:17
↓ 1 callersFunctionMergeSort
DSA 450/Linked List/Merge Sort for Linked Lists.cpp:15
↓ 1 callersFunctionMissingNumber
* Given an array of size N-1 such that it only contains distinct integers in the range of 1 to N. Find the missing element. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Missing_number_Array.cpp:22
↓ 1 callersFunctionPartition
All Data Structures/Sorting/quickSort.cpp:13
↓ 1 callersMethodPreorder
All Data Structures/TREE/Tree.cpp:59
↓ 1 callersFunctionPrims
All Algorithms/Graph Algorithm/Prim's MST.cpp:6
↓ 1 callersFunctionPrimsMST
All Data Structures/GRAPHS/PrimsMinSpanningTree.cpp:22
↓ 1 callersFunctionPrintMCST
All Data Structures/GRAPHS/Kruskal'sMinSpanningTree.cpp:9
↓ 1 callersFunctionPrintMST
All Data Structures/GRAPHS/PrimsMinSpanningTree.cpp:7
↓ 1 callersFunctionQuickSort
All Data Structures/Sorting/quickSort.cpp:33
↓ 1 callersFunctionQuickSort
All Algorithms/Sorting Algorithm/Quick_sort/Quick_sort.cpp:28
↓ 1 callersFunctionRandomPivotPartition
All Data Structures/Sorting/quickSort.cpp:26
↓ 1 callersFunctionRearrange
* Given a list of integers, rearrange the list such that it consists of alternating minimum-maximum elements using only list operations. The first ele
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Rearranging_array.cpp:22
↓ 1 callersFunctionRecursiveMergeSort
All Algorithms/Sorting Algorithm/RecursiveMergeSort.cpp:40
↓ 1 callersFunctionSearch
All Data Structures/TREE/BST.C:53
↓ 1 callersFunctionSelectionSort
(L)
All Algorithms/Sorting Algorithm/Selection_Sort.py:1
↓ 1 callersFunctionSet
Coding Platforms(codechef,codeforces,etc)/spoj/Finding the Kth Prime.cpp:13
↓ 1 callersFunctionShellSort
Code is similar to Insertion Sort with some modifications
All Algorithms/Sorting Algorithm/ShellSort.cpp:21
↓ 1 callersFunctionSortedMerge
DSA 450/Linked List/Merge Sort for Linked Lists.cpp:36
↓ 1 callersFunctionTreecreate
All Data Structures/TREE/Tree.c:8
↓ 1 callersFunctionUncommonChars
* Given two strings A and B. Find the characters that are not common in the two strings. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Uncommon_string.cpp:23
↓ 1 callersFunctionUnion
Set operations: Union and Find
All Data Structures/GRAPHS/Kruskal'sMinSpanningTree.cpp:18
↓ 1 callersFunction_quick_sort
(items, low, high)
All Algorithms/Sorting Algorithm in Python/quickSort.py:29
↓ 1 callersFunctionadd
Coding Platforms(codechef,codeforces,etc)/CodeChef/Codechef-October-Long-Challenge-2022/SingleOp2.cpp:16
↓ 1 callersFunctionadd
Coding Platforms(codechef,codeforces,etc)/LeetCode/Sum of Natural numbers using Recursion.cpp:17
↓ 1 callersFunctionadd
Coding Platforms(codechef,codeforces,etc)/Codeforces/1A.cpp:30
↓ 1 callersFunctionaddLeft
Function to return a list containing elements of left view of the binary tree.
All Data Structures/TREE/Left_view_Of_Binary_Tree.cpp:131
↓ 1 callersMethodaddTwoLists
Function to add two numbers represented by linked list.
DSA 450/Linked List/addTwoNumbersRepresentedByLinkedList.cpp:112
↓ 1 callersFunctionadd_edge
Function to add edges to tree
All Algorithms/Graph Algorithm/Euler Tour Algorithm.cpp:11
↓ 1 callersMethodapply_union
(self, parent, rank, x, y)
All Algorithms/Graph Algorithm/Kruskal Algorithm in Python.py:15
↓ 1 callersFunctionareAnagram
Basic Programming/anagram.cpp:3
↓ 1 callersFunctionareRotations
DSA 450/String/strings are rotations of each other or not.cpp:4
↓ 1 callersFunctionarmstrongNumber
* For a given 3 digit number, find whether it is armstrong number or not. An Armstrong number of three digits is an integer such that the sum of the c
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Armstrong_number.cpp:22
↓ 1 callersMethodarrange
arr: input array n: size of array Function to rearrange an array so that arr[i] becomes arr[arr[i]] with O(1) extra space.
All Data Structures/Arrays/Rearrange an array with O(1) extra space.cpp:14
↓ 1 callersFunctionbinarySearch
All Algorithms/Searching Algorithm/binary_search.cpp:5
↓ 1 callersFunctionbinarySearch
* Given a sorted array of size N and an integer K, find the position at which K is present in the array using binary search. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Binary_Search.cpp:22
↓ 1 callersFunctionbinomialCoefficient
Basic Programming/All_Patterns.c:62
↓ 1 callersFunctionbinpow
All Algorithms/Algebraic algorithms/BinaryExponentiation.cpp:6
↓ 1 callersFunctionbinpow
Coding Platforms(codechef,codeforces,etc)/Codeforces/910C.cpp:123
↓ 1 callersFunctionbinpow
Coding Platforms(codechef,codeforces,etc)/Codeforces/920E.cpp:198
↓ 1 callersFunctionbirthday
Function to determine Sum of months as days..
Coding Platforms(codechef,codeforces,etc)/HackerRank/SubArrayDiv.Cpp:10
↓ 1 callersFunctionbubbleSort
(sortingList)
All Algorithms/Sorting Algorithm in Python/bubbleSort.py:23
↓ 1 callersFunctionbubbleSort
function for Bubble Sort
Basic Programming/BubbleSort.cpp:31
↓ 1 callersFunctionbubble_sort
All Algorithms/Bubble_sort.cpp:4
↓ 1 callersFunctionbubble_sort
All Algorithms/Sorting Algorithm/bubble_sort.c:8
↓ 1 callersFunctionbucketSort
(x)
All Algorithms/Sorting Algorithm in Python/bucket_Sort.py:12
↓ 1 callersFunctionbuild
Coding Platforms(codechef,codeforces,etc)/Codeforces/Password.cpp:30
↓ 1 callersFunctionbuildTree
Function to Build Tree
All Data Structures/TREE/Left_view_Of_Binary_Tree.cpp:28
↓ 1 callersFunctionbuildTree
Function to Build Tree
All Data Structures/TREE/Top_View_Of_BT.cpp:27
↓ 1 callersFunctionbuildTree
Function to Build Tree
All Data Structures/TREE/Level_Order_Traversal_in_Spiral_Form.cpp:26
↓ 1 callersFunctionbuildTree
Function to Build Tree
DSA 450/Binary Trees/level_order_traversal.cpp:70
↓ 1 callersFunctionbuildTree
Function to Build Tree
DSA 450/Binary Trees/Leftviewoftree.cpp:27
↓ 1 callersFunctionbuild_segtree
------------------------Do not write above this line--------------------------------------------------------------------------------------------------
All Algorithms/Graph Algorithm/SegmentTree(max-query).cpp:100
↓ 1 callersFunctionbuildtree
build the tree from array
DSA 450/Binary Trees/print_all_left_child_elements.cpp:28
↓ 1 callersFunctionbuySell2
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmax2Transactions.cpp:7
↓ 1 callersFunctionbuySell2SpaceOptimized
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmax2Transactions.cpp:56
↓ 1 callersFunctionbuySell2Tabulation
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmax2Transactions.cpp:32
↓ 1 callersFunctionbuySell2funCall
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmax2Transactions.cpp:25
↓ 1 callersFunctionbuySell3
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmaxKTransactions.cpp:6
↓ 1 callersFunctionbuySell3SpaceOptimized
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmaxKTransactions.cpp:62
↓ 1 callersFunctionbuySell3Tabulation
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmaxKTransactions.cpp:31
↓ 1 callersFunctionbuySell3funCall
DSA 450/Dynamic Programming/Best_time_to_buy_and_sell_stocks_atmaxKTransactions.cpp:24
↓ 1 callersMethodcalculateSpan
Function to calculate the span of stock’s price for all n days.
All Data Structures/Stack/Stock_span_problem.cpp:17
↓ 1 callersFunctionceil_func
Coding Platforms(codechef,codeforces,etc)/Codeforces/A_1359.cpp:13
↓ 1 callersMethodcelebrity
Function to find if there is a celebrity in the party or not.
All Data Structures/Stack/The_Celebrity_Problem.cpp:19
↓ 1 callersMethodcelebrity
Function to find if there is a celebrity in the party or not.
DSA 450/Stack/theCelebrityProblem.cpp:29
← previousnext →201–300 of 2,161, ranked by callers