MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodfindKthNumber
Recursion/K-th Smallest in Lexicographical Order.cpp:31
MethodfindKthPositive
Arrays/Binary Search/Kth Missing Positive Number.cpp:11
MethodfindLCA
Binary Lifting/Number of Ways to Assign Edge Weights II.cpp:44
MethodfindLCS
DP/Printing All Longest Common Subsequences.cpp:18
MethodfindLHS
Arrays/Leetcode Easy/Longest Harmonious Subsequence.cpp:16
MethodfindLadders
Graph/Word Ladder II.cpp:56
MethodfindLargestIsland
Graph/BFS_DFS/Making A Large Island.cpp:32
MethodfindLastPosition
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:109
FunctionfindLeastNumOfUniqueInts
Greedy/Least Number of Unique Integers after K Removals.cpp:128
MethodfindLeastNumOfUniqueInts
Greedy/Least Number of Unique Integers after K Removals.cpp:15
MethodfindLeaves
Tree/Find Leaves Of Binary Tree.cpp:44
MethodfindLeftMostZero
Segment Tree/Longest Balanced Subarray II.cpp:102
MethodfindLength
DP/Maximum_Length_of_Repeated_Subarray.cpp:57
MethodfindLengthOfShortestSubarray
Arrays/Two Pointer/Shortest Subarray to be Removed to Make Array Sorted.cpp:15
FunctionfindLexSmallestString
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:207
MethodfindLexSmallestString
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:24
MethodfindLocalMax
Arrays/2-D Array/Leetcode Easy/Largest Local Values in a Matrix.cpp:15
FunctionfindLongestChain
DP/LIS & Variants/Maximum Length of Pair Chain.cpp:41
MethodfindLongestChain
DP/LIS & Variants/Maximum Length of Pair Chain.cpp:54
FunctionfindLucky
HashMap/Leetcode Easy/Find Lucky Integer in an Array.cpp:109
MethodfindLucky
HashMap/Leetcode Easy/Find Lucky Integer in an Array.cpp:16
MethodfindMatrix
Arrays/2-D Array/Convert an Array Into a 2D Array With Conditions.cpp:13
MethodfindMax
Sliding Window/Maximize the Confusion of an Exam.cpp:14
MethodfindMax
Sliding Window/Longest Subarray of 1's After Deleting One Element.cpp:14
MethodfindMaxConsecutiveOnes
Arrays/Max Consecutive Ones II.cpp:33
MethodfindMaxDiff
Tree/Maximum difference between node and its ancestor.cpp:29
FunctionfindMaxFish
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:266
MethodfindMaxFish
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:66
FunctionfindMaxForm
DP/Ones and Zeroes.cpp:152
MethodfindMaxForm
DP/Ones and Zeroes.cpp:33
FunctionfindMaxK
Arrays/Leetcode Easy/Largest Positive Integer That Exists With Its Negative.cpp:131
MethodfindMaxK
Arrays/Leetcode Easy/Largest Positive Integer That Exists With Its Negative.cpp:14
MethodfindMaxLength
Arrays/Cumulative_Sum(Prefix Array)/Contiguous Array.cpp:19
MethodfindMaxLessThanK
DP/Max Sum of Rectangle No Larger Than K.cpp:11
MethodfindMaxPathScore
Graph/Dijkstra'a Based Problems/Network Recovery Pathways.cpp:57
MethodfindMaxSum
Heap/Choose K Elements With Maximum Sum.cpp:15
MethodfindMaxUtil
Tree/Maximum difference between node and its ancestor.cpp:19
MethodfindMaximizedCapital
Heap/IPO.cpp:15
FunctionfindMaximumNumber
Bit_Magic/Maximum Number That Sum of the Prices Is Less Than or Equal to K.cpp:147
MethodfindMaximumNumber
Bit_Magic/Maximum Number That Sum of the Prices Is Less Than or Equal to K.cpp:33
FunctionfindMaximumXOR
Bit_Magic/Maximum XOR of Two Numbers in an Array.cpp:131
FunctionfindMedian
Design/Find Median from Data Stream.cpp:124
MethodfindMedian
Design/Find Median from Data Stream.cpp:37
MethodfindMedianSortedArrays
Arrays/Binary Search/Median of Two Sorted Arrays.cpp:13
MethodfindMin
Arrays/Binary Search/Find Minimum in Rotated Sorted Array II.cpp:14
MethodfindMin
Arrays/Binary Search/Find Minimum in Rotated Sorted Array.cpp:24
FunctionfindMinArrowShots
Greedy/Minimum Number of Arrows to Burst Balloons.cpp:137
MethodfindMinArrowShots
Greedy/Minimum Number of Arrows to Burst Balloons.cpp:19
MethodfindMinDifference
Arrays/Minimum Time Difference.cpp:16
MethodfindMinHeightTrees
Graph/Topological Sorting/Minimum Height Trees.cpp:16
FunctionfindMissingAndRepeatedValues
Mathematical/Leetcode Easy/Find Missing and Repeated Values.cpp:129
MethodfindMissingAndRepeatedValues
Mathematical/Leetcode Easy/Find Missing and Repeated Values.cpp:15
FunctionfindMode
Tree/BST/Find Mode in Binary Search Tree.cpp:106
MethodfindMode
Tree/BST/Find Mode in Binary Search Tree.cpp:24
MethodfindNextGreater
Mathematical/Apply Operations to Maximize Score.cpp:80
MethodfindNumberOfLIS
DP/Number of Longest Increasing Subsequence.cpp:10
FunctionfindNumbers
Arrays/Leetcode Easy/Find Numbers With Even Number Of Digits.cpp:150
MethodfindNumbers
Arrays/Leetcode Easy/Find Numbers With Even Number Of Digits.cpp:23
MethodfindOrder
Graph/Topological Sorting/Course Schedule II.cpp:50
MethodfindOriginalArray
Arrays/Find Original Array From Doubled Array.cpp:10
MethodfindOverlappedRegion
Arrays/Intervals_Based_Qn/My Calendar II.cpp:22
MethodfindPath
Tree/Step-By-Step Directions From a Binary Tree Node to Another.cpp:32
MethodfindPath
Recursion/Rat in a Maze Problem - I.cpp:50
FunctionfindPaths
DP/Out of Boundary Paths.cpp:185
MethodfindPaths
DP/Out of Boundary Paths.cpp:44
MethodfindPermutation
Backtracking/Find the Minimum Cost Array Permutation.cpp:41
MethodfindPivot
Arrays/Binary Search/Find Minimum in Rotated Sorted Array.cpp:9
MethodfindPower
Binary exponentiation T.C : O(log(b))
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:17
MethodfindPower
Mathematical/Count Good Numbers.cpp:17
MethodfindPower
Mathematical/Apply Operations to Maximize Score.cpp:17
MethodfindPower
Mathematical/Count the Number of Ideal Arrays.cpp:38
MethodfindPower
Binary exponentian
DP/DP on Strings/Count Number of Balanced Permutations.cpp:51
MethodfindPower
DP/Digit DP/Find Sum of Array Product of Magical Sequences.cpp:66
MethodfindPrevGreater
Mathematical/Apply Operations to Maximize Score.cpp:97
MethodfindPrimeScores
Mathematical/Apply Operations to Maximize Score.cpp:48
FunctionfindRedundantConnection
Graph/Redundant Connection.cpp:247
MethodfindRedundantConnection
Graph/Redundant Connection.cpp:35
FunctionfindRelativeRanks
Arrays/Leetcode Easy/Relative Ranks.cpp:181
MethodfindRelativeRanks
Arrays/Leetcode Easy/Relative Ranks.cpp:14
MethodfindRightInterval
Arrays/Intervals_Based_Qn/Find Right Interval.cpp:9
MethodfindRoot
HashSet/Replace Words.cpp:16
FunctionfindRotateSteps
Graph/Dijkstra'a Based Problems/Freedom Trail.cpp:82
FunctionfindRotateSteps
DP/DP on Strings/Freedom Trail.cpp:137
MethodfindRotateSteps
Graph/Dijkstra'a Based Problems/Freedom Trail.cpp:23
MethodfindRotateSteps
DP/DP on Strings/Freedom Trail.cpp:48
MethodfindRotation
Arrays/2-D Array/Leetcode Easy/Determine Whether Matrix Can Be Obtained By Rotation.cpp:32
FunctionfindSafeWalk
Graph/Dijkstra'a Based Problems/Find a Safe Walk Through a Grid.cpp:140
MethodfindSafeWalk
Graph/Dijkstra'a Based Problems/Find a Safe Walk Through a Grid.cpp:17
FunctionfindScore
Heap/Find Score of an Array After Marking All Elements.cpp:145
MethodfindScore
Heap/Find Score of an Array After Marking All Elements.cpp:14
MethodfindSequences
Backtracking/Letter Tile Possibilities.cpp:53
MethodfindSets
Mathematical/Count the Number of Ideal Arrays.cpp:16
MethodfindSmallestInteger
Mathematical/Smallest Missing Non-negative Integer After Operations.cpp:17
MethodfindSmallestSetOfVertices
Graph/Minimum Number of Vertices to Reach All Nodes.cpp:9
FunctionfindSpecialInteger
Arrays/Element Appearing More Than 25% In Sorted Array.cpp:132
MethodfindSpecialInteger
Arrays/Element Appearing More Than 25% In Sorted Array.cpp:14
MethodfindSubsequences
Backtracking/Non-decreasing Subsequences.cpp:32
MethodfindSubstring
Sliding Window/Substring with Concatenation of All Words.cpp:34
MethodfindSum
Design/Map Sum Pairs.cpp:63
MethodfindSwapValues
Arrays/Swapping pairs make sum equal.cpp:34
← previousnext →1,401–1,500 of 3,557, ranked by callers