MCPcopy Create free account

hub / github.com/Prince-1501/Hello_world-Competiitve-Programming / functions

Functions340 in github.com/Prince-1501/Hello_world-Competiitve-Programming

Methodconvert
Leetcode/Graph/Surrounded Regions.cpp:6
MethodcopyRandomList
Leetcode/linkedlist/Copy List with Random Pointer.cpp:22
MethodcountConsistentStrings
Leetcode/Count the Number of Consistent Strings.cpp:5
MethodcountSubset
Leetcode/Recursion/Target Sum.cpp:6
MethodcountSubset
1000000007
Leetcode/Recursion/Perfect Sum Problem.cpp:11
MethodcustomSortString
Leetcode/Hashing/Custom Sort String.cpp:5
Methodcycle
Leetcode/Graph/Detect cycle in a directed graph.cpp:7
MethoddeleteDuplicates
Leetcode/linkedlist/Remove Duplicates from Sorted List.cpp:5
MethoddeleteMid
Leetcode/Recursion/Delete middle element of a stack.cpp:18
MethoddeleteMidHelper
Leetcode/Recursion/Delete middle element of a stack.cpp:8
MethoddeleteNode
Leetcode/linkedlist/Delete Node in a Linked List.cpp:5
MethoddetectCycle
Leetcode/linkedlist/Linked List Cycle II.cpp:13
Methoddfs
Leetcode/Graph/All Paths From Source to Target.cpp:6
Methoddfs
Leetcode/Graph/Minimum Time to Collect All Apples in a Tree.cpp:6
Methoddfs
Leetcode/Graph/Number of Provinces.cpp:6
Methoddfs
Leetcode/Graph/Max Area of Island.cpp:13
Methoddfs
Leetcode/Graph/Time Needed to Inform All Employees.cpp:10
Methoddfs
Leetcode/Graph/Number of Enclaves.cpp:28
Methoddfs
Leetcode/Graph/Number of closed Islands.cpp:14
Methoddfs
Leetcode/Graph/Surrounded Regions.cpp:29
MethoddiameterOfBinaryTree
Leetcode/Tree/Diameter of Binary Tree.cpp:32
MethoddivisorGame
Leetcode/Recursion/Divisor Game.cpp:5
MethodevalRPN
Leetcode/stack/Evaluate Reverse Polish Notation.cpp:5
MethodeventualSafeNodes
Leetcode/Graph/Find Eventual Safe States.cpp:26
Methodfactorial
Leetcode/Recursion/Factorial.cpp:5
Methodfib
Leetcode/Recursion/Fibonacci Number.cpp:5
MethodfillLPS
Leetcode/string/Find the Index of the First Occurrence in a String.cpp:7
MethodfindCircleNum
Leetcode/Graph/Number of Provinces.cpp:30
MethodfindJudge
Leetcode/Graph/Find the Town Judge.cpp:5
FunctionfindMedian
arr : given array with size n brr : given array with size m
Leetcode/Median of Two sorted arrays.cpp:6
MethodfindPath
Leetcode/Tree/Lowest Common Ancestor of a Binary Tree.cpp:19
MethodfindTargetSumWays
Leetcode/Recursion/Target Sum.cpp:26
MethodfirstNonRepeating
Leetcode/Hashing/Non-Repeating Element.cpp:6
MethodfirstRepeated
Function to return the position of the first repeating element.
Leetcode/Hashing/First Repeating Element.cpp:6
MethodfloodFill
Leetcode/Graph/Flood Fill.cpp:31
MethodfloodFillRec
Leetcode/Graph/Flood Fill.cpp:14
MethodfrequencySort
Leetcode/Hashing/Sort Array by Increasing Frequency.cpp:5
Methodfun
Leetcode/Recursion/House Robber.cpp:6
Methodget
Leetcode/Hashing/LFU Cache.cpp:36
MethodgetIntersectionNode
Leetcode/linkedlist/Intersection of Two Linked Lists.cpp:13
MethodgetMin
Leetcode/stack/Min Stack.cpp:32
MethodgroupAnagrams
Leetcode/Hashing/Group Anagrams.cpp:5
MethodhasArrayTwoCandidates
Function to check if array has 2 elements whose sum is equal to the given value
Leetcode/Hashing/Key Pair.cpp:7
MethodhasCycle
Leetcode/linked-list-cycle.cpp:14
Methodheight
Leetcode/Tree/Diameter of Binary Tree.cpp:19
Methodheight
Leetcode/Tree/Balanced Binary Tree.cpp:17
Methodinorder
Leetcode/Tree/same Tree.cpp:18
Methodinorder
Leetcode/Tree/Subtree of Another Tree.cpp:38
MethodinorderTraversal
Leetcode/Tree/Binary Tree Inorder Traversal.cpp:26
MethodinorderUtil
Leetcode/Tree/Balanced Binary Tree.cpp:24
FunctioninterchangeRows
Leetcode/Interchanging the rows of a Matrix.cpp:4
MethodinvertTree
Leetcode/Tree/Invert Binary Tree.cpp:16
MethodisBalanced
Leetcode/Tree/Balanced Binary Tree.cpp:38
MethodisCyclic
Leetcode/Graph/Detect cycle in a directed graph.cpp:25
MethodisPalindrome
Leetcode/linkedlist/Palindrome Linked List.cpp:15
MethodisSameTree
Leetcode/Tree/same Tree.cpp:36
MethodisSubsetSum
Leetcode/Recursion/Subset Sum Problem.cpp:17
MethodisSubtree
Leetcode/Tree/Subtree of Another Tree.cpp:49
FunctionisSumProperty
Leetcode/Tree/Children Sum Parent.cpp:3
MethodisSymmetric
Leetcode/Tree/Symmetric Tree.cpp:34
MethodisValid
Leetcode/Graph/Flood Fill.cpp:6
MethodisValid
Leetcode/Graph/Max Area of Island.cpp:6
MethodisValid
Leetcode/Graph/Number of Enclaves.cpp:21
MethodisValid
Leetcode/Graph/Number of closed Islands.cpp:7
MethodisValid
Leetcode/Graph/Rotting Oranges.cpp:7
MethodisValid
Leetcode/Graph/Surrounded Regions.cpp:22
MethodisValid
Leetcode/Graph/Steps by Knight.cpp:8
MethodisValid
Leetcode/Graph/Number of Islands.cpp:7
MethodisValid
Leetcode/stack/Valid Parentheses.cpp:5
MethodknapSack
Function to return max value that can be put in knapsack of capacity W.
Leetcode/Recursion/0-1 Knapsack Problem Top down.cpp:7
Methodlargest
Leetcode/Recursion/Largest Element in Array.cpp:6
MethodlargestRectangleArea
Leetcode/stack/Largest Rectangle in Histogram.cpp:39
FunctionlevelOrder
Leetcode/Tree/Level Order Traversal.cpp:3
MethodlowestCommonAncestor
Leetcode/Tree/Lowest Common Ancestor of a Binary Tree.cpp:33
Functionmain
54_print_subset_of_size_k_of_array.cpp:15
Functionmain
Lecture - 15.cpp:13
Functionmain
42_codechef_the_great_run.cpp:12
Functionmain
Lecture - 21.cpp:4
Functionmain
Lecture - 18.cpp:3
Functionmain
39_codechef_chef_and_Eid.cpp:14
Functionmain
49_two_buttons_codeforces.cpp:14
Functionmain
53_codeforces_MUH_and_sticks.cpp:12
Functionmain
41_codechef_chef_and_glove.cpp:13
Functionmain
chef and string.cpp:14
Functionmain
52_codechef_flatland.cpp:12
Functionmain
Lecture - 32.cpp:11
Functionmain
Lecture - 22.cpp:5
Functionmain
Lecture - 27.cpp:11
Functionmain
Kadane's_algorithm.cpp:13
Functionmain
Chef and Price Control.cpp:13
Functionmain
46_drink_codeforce.cpp:11
Functionmain
58_codechef_phone_prices.cpp:14
Functionmain
40_codechef_chef_judges_competition.cpp:14
Functionmain
43_codechef_attendance.cpp:12
Functionmain
36_codechef_Encoding_message.cpp:15
Functionmain
57_codechef_A-books.cpp:11
Functionmain
Lecture - 24.cpp:38
Functionmain
51_eleven_codeforces.cpp:15
Functionmain
44_codechef_making_a_meal.cpp:14
Functionmain
38_codechef_fits_square_in_triangle.cpp:11
← previousnext →101–200 of 340, ranked by callers