MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodnumSubmat
Arrays/2-D Array/Count Submatrices With All Ones.cpp:33
FunctionnumSubmatrixSumTarget
Arrays/2-D Array/Number of Submatrices That Sum to Target.cpp:108
MethodnumSubmatrixSumTarget
Arrays/2-D Array/Number of Submatrices That Sum to Target.cpp:17
MethodnumSubseq
Arrays/Two Pointer/Number of Subsequences That Satisfy the Given Sum Condition.cpp:19
MethodnumTeams
Arrays/Count Number of Teams.cpp:15
FunctionnumTilePossibilities
Backtracking/Letter Tile Possibilities.cpp:140
MethodnumTilePossibilities
Backtracking/Letter Tile Possibilities.cpp:34
FunctionnumTilings
DP/Domino and Tromino Tiling.cpp:104
MethodnumTilings
DP/Domino and Tromino Tiling.cpp:30
FunctionnumWaterBottles
Mathematical/Leetcode Easy/Water Bottles.cpp:94
MethodnumWaterBottles
Mathematical/Leetcode Easy/Water Bottles.cpp:15
FunctionnumWays
DP/Number of Ways to Form a Target String Given a Dictionary.cpp:167
FunctionnumWays
DP/Number of Ways to Stay in the Same Place After Some Steps.cpp:71
MethodnumWays
DP/Number of Ways to Form a Target String Given a Dictionary.cpp:39
MethodnumWays
DP/Number of Ways to Stay in the Same Place After Some Steps.cpp:38
FunctionnumberOfAlternatingGroups
Sliding Window/Alternating Groups II.cpp:168
MethodnumberOfAlternatingGroups
Sliding Window/Alternating Groups II.cpp:15
FunctionnumberOfArithmeticSlices
DP/Arithmetic Slices II - Subsequence.cpp:80
MethodnumberOfArithmeticSlices
DP/Arithmetic Slices.cpp:10
MethodnumberOfArithmeticSlices
DP/Arithmetic Slices II - Subsequence.cpp:12
MethodnumberOfArrays
Mathematical/Count the Hidden Sequences.cpp:15
MethodnumberOfArrays
DP/Restore The Array.cpp:45
MethodnumberOfBeams
strings/Number of Laser Beams in a Bank.cpp:13
MethodnumberOfGoodPartitions
Arrays/Two Pointer/Count the Number of Good Partitions.cpp:14
MethodnumberOfGoodPaths
Graph/Disjoint Set/Number of Good Paths.cpp:36
MethodnumberOfIslandsDFS
Arrays/2-D Array/DFS/Minimum Number of Days to Disconnect Island.cpp:31
MethodnumberOfIslandsDFS
Arrays/2-D Array/DFS/Regions Cut By Slashes.cpp:18
FunctionnumberOfMatches
Mathematical/Count of Matches in Tournament.cpp:69
MethodnumberOfMatches
Mathematical/Count of Matches in Tournament.cpp:13
MethodnumberOfPairs
Arrays/Find the Number of Ways to Place People I.cpp:15
MethodnumberOfPairs
Arrays/Find the Number of Ways to Place People II.cpp:16
FunctionnumberOfPaths
DP/DP on Grids/Paths in Matrix Whose Sum Is Divisible by K.cpp:146
MethodnumberOfPaths
DP/DP on Grids/Paths in Matrix Whose Sum Is Divisible by K.cpp:39
MethodnumberOfPowerfulInt
strings/Count the Number of Powerful Integers.cpp:45
FunctionnumberOfSets
Graph/Floyd Warshall/Number of Possible Sets of Closing Branches.cpp:86
MethodnumberOfSets
Graph/Floyd Warshall/Number of Possible Sets of Closing Branches.cpp:15
MethodnumberOfSpecialChars
HashMap/Count the Number of Special Characters II.cpp:16
FunctionnumberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays II.cpp:182
FunctionnumberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays I.cpp:143
MethodnumberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays II.cpp:57
MethodnumberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays I.cpp:44
FunctionnumberOfSubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Number of Nice Subarrays.cpp:83
MethodnumberOfSubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Number of Nice Subarrays.cpp:14
MethodnumberOfSubmatrices
Arrays/2-D Array/Count Submatrices With Equal Frequency of X and Y.cpp:16
MethodnumberOfSubstrings
strings/Count the Number of Substrings With Dominant Ones.cpp:15
MethodnumberOfSubstrings
Sliding Window/Number of Substrings Containing All Three Characters.cpp:15
FunctionnumberOfWays
strings/Number of Ways to Divide a Long Corridor.cpp:53
MethodnumberOfWays
strings/Number of Ways to Divide a Long Corridor.cpp:16
MethodnumberOfWays
DP/Ways to Express an Integer as Sum of Powers.cpp:40
MethodnumberToWords
Recursion/Integer to English Words.cpp:49
MethodnumsSameConsecDiff
Graph/BFS_DFS/Numbers With Same Consecutive Differences.cpp:34
MethododdEvenList
Linked List/Odd Even Linked List.cpp:10
MethodonesMinusZeros
Arrays/2-D Array/Difference Between Ones and Zeros in Row and Column.cpp:14
MethodopenLock
Graph/Open the Lock.cpp:45
Methodoperate
Stack/Evaluate Reverse Polish Notation.cpp:14
Methodoperator()
Heap/Top K Frequent Words.cpp:49
Methodoperator()
Heap/Top k numbers in a stream.cpp:65
Methodoperator()
Heap/Sort Characters By Frequency.cpp:43
Methodoperator()
Heap/Lexicographically Minimum String After Removing Stars.cpp:18
Methodoperator()
DP/Jump Game VI.cpp:120
Methodoperator()
Arrays/Intervals_Based_Qn/Meeting Rooms II.cpp:37
MethodorangesRotting
Graph/Multi-Source BFS/Rotting Oranges.cpp:18
MethodorderOfLargestPlusSign
DP/Largest Plus Sign.cpp:11
MethodorderlyQueue
strings/Orderly Queue.cpp:9
MethodouterTrees
Mathematical/Erect the Fence.cpp:24
MethodpacificAtlantic
Arrays/2-D Array/DFS/Pacific Atlantic Water Flow.cpp:42
FunctionpaintWalls
DP/Painting the Walls.cpp:79
MethodpaintWalls
DP/Painting the Walls.cpp:37
MethodpairSum
Linked List/Maximum Twin Sum of a Linked List.cpp:11
MethodpalindromePairs
Trie/Palindrome Pairs.cpp:87
MethodpalindromePairs
HashMap/Palindrome Pairs.cpp:26
MethodpancakeSort
Arrays/Pancake Sorting.cpp:8
MethodparseBoolExpr
Stack/Parsing A Boolean Expression.cpp:28
Methodpartition
Backtracking/Palindrome Partitioning.cpp:56
Methodpartition
Recursion/Quick Sort.cpp:27
MethodpartitionAndMerge
Linked List/Merge k Sorted Lists.cpp:41
MethodpartitionArray
Arrays/Partition Array Such That Maximum Difference Is K.cpp:15
MethodpartitionDisjoint
Arrays/Partition Array into Disjoint Intervals.cpp:11
MethodpartitionLabels
Arrays/Two Pointer/Partition Labels.cpp:15
MethodpartitionString
Greedy/Optimal Partition of String.cpp:9
Methodpartition_algo
Heap/Kth Largest Element in an Array.cpp:45
FunctionpassThePillow
Mathematical/Leetcode Easy/Pass the Pillow.cpp:81
MethodpassThePillow
Mathematical/Leetcode Easy/Pass the Pillow.cpp:15
MethodpathSum
Tree/Path Sum II.cpp:31
MethodpathSum
Tree/Path Sum.cpp:8
FunctionpathsWithMaxScore
DP/DP on Grids/Number of Paths with Max Score.cpp:317
MethodpathsWithMaxScore
DP/DP on Grids/Number of Paths with Max Score.cpp:95
MethodpeakIndexInMountainArray
This function is already taught in my YouTube Video - https://www.youtube.com/watch?v=Op07kT-LoH8 ("Peak Index in a Mountain Array")
Arrays/Binary Search/Find in Mountain Array.cpp:19
MethodpeakIndexInMountainArray
Arrays/Binary Search/Peak Index in a Mountain Array.cpp:13
MethodpeekMax
Design/Max Stack.cpp:58
FunctionpeopleAwareOfSecret
DP/1-D DP/Number of People Aware of a Secret.cpp:187
MethodpeopleAwareOfSecret
DP/1-D DP/Number of People Aware of a Secret.cpp:40
Methodpermute
Backtracking/Permutations.cpp:32
MethodpermuteUnique
Backtracking/Permutations II.cpp:41
Methodpick
Mathematical/Random Point in Non-overlapping Rectangles.cpp:37
FunctionpickGifts
Heap/Leetcode Easy/Take Gifts From the Richest Pile.cpp:45
MethodpickGifts
Heap/Leetcode Easy/Take Gifts From the Richest Pile.cpp:15
Methodpivot
Arrays/Binary Search/Search in Rotated Sorted Array II.cpp:9
FunctionpivotArray
Arrays/Partition Array According to Given Pivot.cpp:172
MethodpivotArray
Arrays/Partition Array According to Given Pivot.cpp:15
← previousnext →2,701–2,800 of 3,557, ranked by callers