MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

Methodcheck
DP/Palindromic Substrings.cpp:41
Methodcheck
DP/DP on Strings/Palindromic Substrings.cpp:17
Methodcheck
DP/DP on Strings/Palindromic Substrings.cpp:159
Methodcheck
Arrays/Arithmetic Subarrays.cpp:13
Methodcheck
Arrays/Leetcode Easy/Check if Array Is Sorted and Rotated.cpp:14
Methodcheck
Arrays/Leetcode Easy/Convert Integer to the Sum of Two No-Zero Integers.cpp:15
Methodcheck
Arrays/Binary Search/Maximize the Distance Between Points on a Square.cpp:19
Methodcheck
Arrays/Binary Search/Maximize the Minimum Powered City.cpp:17
Methodcheck
Arrays/Binary Search/Minimize the Maximum Adjacent Element Difference.cpp:16
Methodcheck
Arrays/Binary Search/Maximum Number of Tasks You Can Assign.cpp:16
Methodcheck
Arrays/Binary Search/Minimum Number of Seconds to Make Mountain Height Zero.cpp:61
Methodcheck
Arrays/Binary Search/Separate Squares I.cpp:16
Methodcheck
Arrays/Binary Search/Find the Safest Path in a Grid.cpp:18
Methodcheck
Tree/Linked List in Binary Tree.cpp:16
Methodcheck
Tree/Symmetric Tree.cpp:10
Methodcheck
Tree/Subtree of Another Tree.cpp:9
Methodcheck
HashSet/Leetcode Easy/Minimum Number of Operations to Make Elements in Array Distinct.cpp:16
Methodcheck
Sliding Window/Substring with Concatenation of All Words.cpp:15
Methodcheck
Stack/Remove All Occurrences of a Substring.cpp:39
Methodcheck
Recursion/Find the Punishment Number of an Integer.cpp:15
MethodcheckAnagram
strings/Easy Tagged/Find Resultant Array After Removing Anagrams.cpp:16
MethodcheckArithmeticSubarrays
Arrays/Arithmetic Subarrays.cpp:27
MethodcheckBalanced
Arrays/Two Pointer/Longest Balanced Substring I.cpp:16
MethodcheckBipartiteBFS
Graph/Bipartite Graph.cpp:62
MethodcheckBipartiteDFS
Graph/Bipartite Graph.cpp:14
MethodcheckColPainted
Arrays/2-D Array/First Completely Painted Row or Column.cpp:26
MethodcheckDescendents
Condition-2 (Atleast one descendent should be locked)
Design/Operations on Tree.cpp:42
MethodcheckForMatch
HashMap/Vowel Spellchecker.cpp:37
MethodcheckFreq
strings/Buddy Strings.cpp:9
MethodcheckHorCuts
Arrays/Cumulative_Sum(Prefix Array)/Equal Sum Grid Partition II.cpp:18
FunctioncheckIfExist
Arrays/Leetcode Easy/Check If N and Its Double Exist.cpp:124
MethodcheckIfExist
Arrays/Leetcode Easy/Check If N and Its Double Exist.cpp:15
FunctioncheckIfPangram
strings/Check if the Sentence Is Pangram.cpp:65
MethodcheckIfPangram
strings/Check if the Sentence Is Pangram.cpp:14
MethodcheckIfPrerequisite
Graph/Topological Sorting/Course Schedule IV.cpp:33
MethodcheckIn
Design/Design Underground System.cpp:16
FunctioncheckInclusion
Sliding Window/Permutation in String.cpp:191
MethodcheckInclusion
Sliding Window/Permutation in String.cpp:37
MethodcheckLCP
DP/DP on Strings/Find the String with LCP.cpp:72
MethodcheckOne
This is called for all node and hence Time : O(n^2)
Tree/Binary Tree Pruning.cpp:17
FunctioncheckOnesSegment
strings/Easy Tagged/Check if Binary String Has at Most One Segment of Ones.cpp:83
MethodcheckOnesSegment
strings/Easy Tagged/Check if Binary String Has at Most One Segment of Ones.cpp:15
MethodcheckOut
Design/Design Underground System.cpp:20
MethodcheckOverlap
Arrays/Intervals_Based_Qn/My Calendar II.cpp:18
MethodcheckPossibility
Arrays/Non-decreasing_Array.cpp:9
FunctioncheckPowersOfThree
Mathematical/Check if Number is a Sum of Powers of Three.cpp:118
MethodcheckPowersOfThree
Mathematical/Check if Number is a Sum of Powers of Three.cpp:15
FunctioncheckRecord
DP/Student Attendance Record II.cpp:127
MethodcheckRecord
DP/Student Attendance Record II.cpp:38
MethodcheckRowPainted
Arrays/2-D Array/First Completely Painted Row or Column.cpp:16
MethodcheckStrings
HashMap/Check if Strings Can be Made Equal With Operations II.cpp:15
MethodcheckSubIsland
DFS
Arrays/2-D Array/Count Sub Islands.cpp:17
MethodcheckSubarraySum
Arrays/Cumulative_Sum(Prefix Array)/Continuous Subarray Sum.cpp:9
MethodcheckValidCode
HashMap/Leetcode Easy/Coupon Code Validator.cpp:16
MethodcheckValidCuts
Arrays/Intervals_Based_Qn/Check if Grid can be Cut into Sections.cpp:36
FunctioncheckValidString
DP/Valid Parenthesis String.cpp:222
MethodcheckValidString
DP/Valid Parenthesis String.cpp:43
MethodcheckWithDifferenceArrayTeq
Arrays/Difference Array Technique/Zero Array Transformation II.cpp:18
MethodcheckhammingDistanceOne
DP/LIS & Variants/Longest Unequal Adjacent Groups Subsequence II.cpp:18
FunctioncherryPickup
DP/Cherry Pickup II.cpp:215
MethodcherryPickup
DP/Cherry Pickup II.cpp:52
Methodchild1Collect
Can only move diagonally
DP/DP on Grids/Find the Maximum Number of Fruits Collected.cpp:19
Methodchild2Collect
DP/DP on Grids/Find the Maximum Number of Fruits Collected.cpp:29
Methodchild3Collect
DP/DP on Grids/Find the Maximum Number of Fruits Collected.cpp:52
FunctionclearDigits
Stack/Easy/Clear Digits.cpp:138
MethodclearDigits
Stack/Easy/Clear Digits.cpp:15
FunctionclearStars
Heap/Lexicographically Minimum String After Removing Stars.cpp:68
MethodclearStars
Heap/Lexicographically Minimum String After Removing Stars.cpp:27
MethodclimbStairs
DP/Climbing Stairs.cpp:27
MethodclimbStairs
DP/1-D DP/Climbing Stairs.cpp:27
MethodcloneGraph
Graph/Clone Graph.cpp:25
MethodcloseStrings
strings/Determine if Two Strings Are Close.cpp:12
MethodclosedIsland
Arrays/2-D Array/DFS/Number of Closed Islands.cpp:31
FunctionclosestMeetingNode
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:188
MethodclosestMeetingNode
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:38
FunctionclosestPrimes
Mathematical/Closest Prime Numbers in Range.cpp:172
MethodclosestPrimes
Mathematical/Closest Prime Numbers in Range.cpp:33
MethodclosestTarget
Arrays/Leetcode Easy/Shortest Distance to Target String in a Circular Array.cpp:14
Methodcmp
Function to get the maximum total value in the knapsack.
Greedy/Fractional Knapsack.cpp:10
MethodcoinChange
DP/Coin_Change_(3 Approaches).cpp:92
MethodcollectKDistanceNodes
Tree/All Nodes Distance K in Binary Tree.cpp:26
MethodcollectNodeWithHeight
ordered map will give the result in desired order
Tree/Find Leaves Of Binary Tree.cpp:32
MethodcollectPaths
Tree/Path Sum II.cpp:18
FunctioncolorTheGrid
DP/Painting a Grid With Three Different Colors.cpp:137
MethodcolorTheGrid
DP/Painting a Grid With Three Different Colors.cpp:65
FunctioncoloredCells
Mathematical/Count Total Number of Colored Cells.cpp:64
MethodcoloredCells
Mathematical/Count Total Number of Colored Cells.cpp:15
Methodcombi
DP/Coin Change II.cpp:47
MethodcombinationSum2
Backtracking/Combination Sum II.cpp:31
MethodcombinationSum3
Backtracking/Combination Sum III.cpp:26
MethodcombinationSum4
Backtracking/Combination Sum IV.cpp:37
Methodcombine
Backtracking/Combinations.cpp:25
MethodcommonChars
Arrays/Leetcode Easy/Find Common Characters.cpp:20
MethodcommonFactor
Graph/Largest_Component_Size_by_Common_Factor.cpp:9
Methodcomparator
Arrays/Sort Array By Parity.cpp:31
Functioncompare
Arrays/Sort Array By Parity.cpp:92
MethodcompareJobs
DP/Maximum Profit in Job Scheduling.cpp:304
FunctioncompareVersion
strings/Compare Version Numbers.cpp:94
MethodcompareVersion
strings/Compare Version Numbers.cpp:24
MethodcomplexNumberMultiply
strings/Complex Number Multiplication.cpp:22
← previousnext →901–1,000 of 3,557, ranked by callers