Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MAZHARMIK/Interview_DS_Algo
/ functions
Functions
3,557 in github.com/MAZHARMIK/Interview_DS_Algo
⨍
Functions
3,557
◇
Types & classes
1,501
Method
numSubmat
Arrays/2-D Array/Count Submatrices With All Ones.cpp:33
Function
numSubmatrixSumTarget
Arrays/2-D Array/Number of Submatrices That Sum to Target.cpp:108
Method
numSubmatrixSumTarget
Arrays/2-D Array/Number of Submatrices That Sum to Target.cpp:17
Method
numSubseq
Arrays/Two Pointer/Number of Subsequences That Satisfy the Given Sum Condition.cpp:19
Method
numTeams
Arrays/Count Number of Teams.cpp:15
Function
numTilePossibilities
Backtracking/Letter Tile Possibilities.cpp:140
Method
numTilePossibilities
Backtracking/Letter Tile Possibilities.cpp:34
Function
numTilings
DP/Domino and Tromino Tiling.cpp:104
Method
numTilings
DP/Domino and Tromino Tiling.cpp:30
Function
numWaterBottles
Mathematical/Leetcode Easy/Water Bottles.cpp:94
Method
numWaterBottles
Mathematical/Leetcode Easy/Water Bottles.cpp:15
Function
numWays
DP/Number of Ways to Form a Target String Given a Dictionary.cpp:167
Function
numWays
DP/Number of Ways to Stay in the Same Place After Some Steps.cpp:71
Method
numWays
DP/Number of Ways to Form a Target String Given a Dictionary.cpp:39
Method
numWays
DP/Number of Ways to Stay in the Same Place After Some Steps.cpp:38
Function
numberOfAlternatingGroups
Sliding Window/Alternating Groups II.cpp:168
Method
numberOfAlternatingGroups
Sliding Window/Alternating Groups II.cpp:15
Function
numberOfArithmeticSlices
DP/Arithmetic Slices II - Subsequence.cpp:80
Method
numberOfArithmeticSlices
DP/Arithmetic Slices.cpp:10
Method
numberOfArithmeticSlices
DP/Arithmetic Slices II - Subsequence.cpp:12
Method
numberOfArrays
Mathematical/Count the Hidden Sequences.cpp:15
Method
numberOfArrays
DP/Restore The Array.cpp:45
Method
numberOfBeams
strings/Number of Laser Beams in a Bank.cpp:13
Method
numberOfGoodPartitions
Arrays/Two Pointer/Count the Number of Good Partitions.cpp:14
Method
numberOfGoodPaths
Graph/Disjoint Set/Number of Good Paths.cpp:36
Method
numberOfIslandsDFS
Arrays/2-D Array/DFS/Minimum Number of Days to Disconnect Island.cpp:31
Method
numberOfIslandsDFS
Arrays/2-D Array/DFS/Regions Cut By Slashes.cpp:18
Function
numberOfMatches
Mathematical/Count of Matches in Tournament.cpp:69
Method
numberOfMatches
Mathematical/Count of Matches in Tournament.cpp:13
Method
numberOfPairs
Arrays/Find the Number of Ways to Place People I.cpp:15
Method
numberOfPairs
Arrays/Find the Number of Ways to Place People II.cpp:16
Function
numberOfPaths
DP/DP on Grids/Paths in Matrix Whose Sum Is Divisible by K.cpp:146
Method
numberOfPaths
DP/DP on Grids/Paths in Matrix Whose Sum Is Divisible by K.cpp:39
Method
numberOfPowerfulInt
strings/Count the Number of Powerful Integers.cpp:45
Function
numberOfSets
Graph/Floyd Warshall/Number of Possible Sets of Closing Branches.cpp:86
Method
numberOfSets
Graph/Floyd Warshall/Number of Possible Sets of Closing Branches.cpp:15
Method
numberOfSpecialChars
HashMap/Count the Number of Special Characters II.cpp:16
Function
numberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays II.cpp:182
Function
numberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays I.cpp:143
Method
numberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays II.cpp:57
Method
numberOfStableArrays
DP/DP on Strings/Find All Possible Stable Binary Arrays I.cpp:44
Function
numberOfSubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Number of Nice Subarrays.cpp:83
Method
numberOfSubarrays
Arrays/Cumulative_Sum(Prefix Array)/Count Number of Nice Subarrays.cpp:14
Method
numberOfSubmatrices
Arrays/2-D Array/Count Submatrices With Equal Frequency of X and Y.cpp:16
Method
numberOfSubstrings
strings/Count the Number of Substrings With Dominant Ones.cpp:15
Method
numberOfSubstrings
Sliding Window/Number of Substrings Containing All Three Characters.cpp:15
Function
numberOfWays
strings/Number of Ways to Divide a Long Corridor.cpp:53
Method
numberOfWays
strings/Number of Ways to Divide a Long Corridor.cpp:16
Method
numberOfWays
DP/Ways to Express an Integer as Sum of Powers.cpp:40
Method
numberToWords
Recursion/Integer to English Words.cpp:49
Method
numsSameConsecDiff
Graph/BFS_DFS/Numbers With Same Consecutive Differences.cpp:34
Method
oddEvenList
Linked List/Odd Even Linked List.cpp:10
Method
onesMinusZeros
Arrays/2-D Array/Difference Between Ones and Zeros in Row and Column.cpp:14
Method
openLock
Graph/Open the Lock.cpp:45
Method
operate
Stack/Evaluate Reverse Polish Notation.cpp:14
Method
operator()
Heap/Top K Frequent Words.cpp:49
Method
operator()
Heap/Top k numbers in a stream.cpp:65
Method
operator()
Heap/Sort Characters By Frequency.cpp:43
Method
operator()
Heap/Lexicographically Minimum String After Removing Stars.cpp:18
Method
operator()
DP/Jump Game VI.cpp:120
Method
operator()
Arrays/Intervals_Based_Qn/Meeting Rooms II.cpp:37
Method
orangesRotting
Graph/Multi-Source BFS/Rotting Oranges.cpp:18
Method
orderOfLargestPlusSign
DP/Largest Plus Sign.cpp:11
Method
orderlyQueue
strings/Orderly Queue.cpp:9
Method
outerTrees
Mathematical/Erect the Fence.cpp:24
Method
pacificAtlantic
Arrays/2-D Array/DFS/Pacific Atlantic Water Flow.cpp:42
Function
paintWalls
DP/Painting the Walls.cpp:79
Method
paintWalls
DP/Painting the Walls.cpp:37
Method
pairSum
Linked List/Maximum Twin Sum of a Linked List.cpp:11
Method
palindromePairs
Trie/Palindrome Pairs.cpp:87
Method
palindromePairs
HashMap/Palindrome Pairs.cpp:26
Method
pancakeSort
Arrays/Pancake Sorting.cpp:8
Method
parseBoolExpr
Stack/Parsing A Boolean Expression.cpp:28
Method
partition
Backtracking/Palindrome Partitioning.cpp:56
Method
partition
Recursion/Quick Sort.cpp:27
Method
partitionAndMerge
Linked List/Merge k Sorted Lists.cpp:41
Method
partitionArray
Arrays/Partition Array Such That Maximum Difference Is K.cpp:15
Method
partitionDisjoint
Arrays/Partition Array into Disjoint Intervals.cpp:11
Method
partitionLabels
Arrays/Two Pointer/Partition Labels.cpp:15
Method
partitionString
Greedy/Optimal Partition of String.cpp:9
Method
partition_algo
Heap/Kth Largest Element in an Array.cpp:45
Function
passThePillow
Mathematical/Leetcode Easy/Pass the Pillow.cpp:81
Method
passThePillow
Mathematical/Leetcode Easy/Pass the Pillow.cpp:15
Method
pathSum
Tree/Path Sum II.cpp:31
Method
pathSum
Tree/Path Sum.cpp:8
Function
pathsWithMaxScore
DP/DP on Grids/Number of Paths with Max Score.cpp:317
Method
pathsWithMaxScore
DP/DP on Grids/Number of Paths with Max Score.cpp:95
Method
peakIndexInMountainArray
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
Method
peakIndexInMountainArray
Arrays/Binary Search/Peak Index in a Mountain Array.cpp:13
Method
peekMax
Design/Max Stack.cpp:58
Function
peopleAwareOfSecret
DP/1-D DP/Number of People Aware of a Secret.cpp:187
Method
peopleAwareOfSecret
DP/1-D DP/Number of People Aware of a Secret.cpp:40
Method
permute
Backtracking/Permutations.cpp:32
Method
permuteUnique
Backtracking/Permutations II.cpp:41
Method
pick
Mathematical/Random Point in Non-overlapping Rectangles.cpp:37
Function
pickGifts
Heap/Leetcode Easy/Take Gifts From the Richest Pile.cpp:45
Method
pickGifts
Heap/Leetcode Easy/Take Gifts From the Richest Pile.cpp:15
Method
pivot
Arrays/Binary Search/Search in Rotated Sorted Array II.cpp:9
Function
pivotArray
Arrays/Partition Array According to Given Pivot.cpp:172
Method
pivotArray
Arrays/Partition Array According to Given Pivot.cpp:15
← previous
next →
2,701–2,800 of 3,557, ranked by callers