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
↓ 10 callers
Method
find
Graph/BFS_DFS/Making A Large Island.cpp:210
↓ 10 callers
Method
find
Tree/Sum Root to Leaf Numbers.cpp:17
↓ 10 callers
Method
find
Design/Design a Number Container System.cpp:38
↓ 10 callers
Function
findMaxDiff
Tree/Maximum difference between node and its ancestor.cpp:131
↓ 10 callers
Function
getCoord
DP/Minimum Distance to Type a Word Using Two Fingers.cpp:272
↓ 10 callers
Function
rotate
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:170
↓ 10 callers
Function
solve
DP/Target Sum.cpp:211
↓ 10 callers
Function
solve
Tree/Pseudo-Palindromic Paths in a Binary Tree.cpp:132
↓ 10 callers
Function
solve
Tree/Count Nodes Equal to Average of Subtree.cpp:113
↓ 10 callers
Function
solve
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:131
↓ 10 callers
Function
sum
Tree/Count Nodes Equal to Average of Subtree.cpp:100
↓ 9 callers
Method
addAll
Mathematical/Fancy Sequence.cpp:48
↓ 9 callers
Method
find
Backtracking/Word Search.cpp:20
↓ 9 callers
Method
getValue
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String I.cpp:99
↓ 9 callers
Function
newNode
Tree/Diagonal Tree Traversal (Recursive: using map).cpp:19
↓ 9 callers
Function
solve
Recursion/Power Set.cpp:122
↓ 8 callers
Function
MAH
Stack/Maximal Rectangle.cpp:266
↓ 8 callers
Function
addToSet
Arrays/2-D Array/Get Biggest Three Rhombus Sums in a Grid.cpp:287
↓ 8 callers
Function
bfs
Arrays/Jump Game III.cpp:107
↓ 8 callers
Method
find
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:25
↓ 8 callers
Function
getDigitSum
Arrays/Max Sum of a Pair With Equal Sum of Digits.cpp:165
↓ 8 callers
Function
isSubsetSum
DP/Knapsack Series/Partition Equal Subset Sum (Bottom UP & Memo).cpp:161
↓ 8 callers
Function
matrixMultiplication
Function to multiply two matrices
Mathematical/Matrix Exponentiation.cpp:16
↓ 8 callers
Function
removeSubstring
Stack/Maximum Score From Removing Substrings.cpp:192
↓ 8 callers
Function
solve
DP/DP on Strings/Palindrome Partitioning II.cpp:162
↓ 7 callers
Function
DFSBob
Graph/BFS_DFS/Most Profitable Path in a Tree.cpp:275
↓ 7 callers
Function
backtracking
Tries to build a valid subsequence of exact length 'maxLen'
Backtracking/Longest Subsequence Repeated k Times.cpp:272
↓ 7 callers
Function
dfs
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:362
↓ 7 callers
Function
merge
Arrays/Intervals_Based_Qn/Merge Intervals.cpp:127
↓ 7 callers
Function
mergeTwoLists
Linked List/Merge Two Sorted Lists.cpp:90
↓ 7 callers
Method
reverse
strings/Construct Smallest Number From DI String.cpp:130
↓ 7 callers
Method
reverse
Arrays/Rotating_an_Array.cpp:9
↓ 7 callers
Function
solve
DP/Maximum Strength of K Disjoint Subarrays.cpp:73
↓ 7 callers
Function
solve
Backtracking/Generate Parentheses.cpp:143
↓ 7 callers
Function
solve
Backtracking/All Unique Permutations of an array.cpp:175
↓ 7 callers
Function
solve
Backtracking/Word Break II.cpp:113
↓ 7 callers
Function
solve
Backtracking/The k-th Lexicographical String of All Happy Strings of Length n.cpp:137
↓ 7 callers
Function
solve
Recursion/K-th Smallest in Lexicographical Order.cpp:166
↓ 7 callers
Method
sum
Design/Map Sum Pairs.cpp:19
↓ 6 callers
Method
Union
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:32
↓ 6 callers
Function
add
Tree/Add One Row to Tree.cpp:98
↓ 6 callers
Function
addEdge
Graph/BFS_Traversal.cpp:4
↓ 6 callers
Function
check
Graph/Disjoint Set/Maximize Spanning Tree Stability with Upgrades.cpp:205
↓ 6 callers
Function
findDiameter
Function to find the diameter of a tree using two BFS calls
Graph/BFS_DFS/Find Minimum Diameter After Merging Two Trees.cpp:127
↓ 6 callers
Function
flattenBST
Recursion/Flatten BST to sorted list.cpp:105
↓ 6 callers
Function
isSet
Bit_Magic/Minimize XOR.cpp:159
↓ 6 callers
Function
matrixExponentiation
Function to raise matrix base to the power exponent (Just like Binary exponentiation)
Mathematical/Matrix Exponentiation.cpp:26
↓ 6 callers
Function
nCr
nCr using Fermat's Little Theorem
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:184
↓ 6 callers
Function
propagate
Segment Tree/Longest Balanced Subarray II.cpp:216
↓ 6 callers
Function
solve
DP/Digit DP/Maximize the Number of Partitions After Operations.cpp:81
↓ 6 callers
Function
updateRange
Segment Tree/Longest Balanced Subarray II.cpp:229
↓ 6 callers
Function
updateSegTree
Segment Tree/Block Placement Queries.cpp:195
↓ 5 callers
Function
dfs
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:178
↓ 5 callers
Function
findPower
Fast exponentiation (binary exponentiation)
DP/Digit DP/Find Sum of Array Product of Magical Sequences.cpp:200
↓ 5 callers
Function
lis
DP/LIS & Variants/Longest String Chain.cpp:38
↓ 5 callers
Function
lowerBound
Arrays/Binary Search/Successful Pairs of Spells and Potions.cpp:148
↓ 5 callers
Function
minCoinsToGetS
DP/Perfect Squares.cpp:156
↓ 5 callers
Function
minSquares
DP/Perfect Squares.cpp:200
↓ 5 callers
Function
removeDuplicates
Arrays/Two Pointer/Remove Duplicates from Sorted Array.cpp:31
↓ 5 callers
Method
reverse
Mathematical/Reverse Integer.cpp:9
↓ 5 callers
Method
reverse
DP/DP on Strings/Count Number of Balanced Permutations.cpp:179
↓ 5 callers
Function
solve
DP/Champagne Tower.cpp:88
↓ 5 callers
Function
solve
DP/Longest Palindromic Substring.cpp:215
↓ 5 callers
Function
solve
DP/Maximum Length of a Concatenated String with Unique Characters.cpp:93
↓ 5 callers
Function
solve
DP/Number of Music Playlists.cpp:18
↓ 5 callers
Function
solve
DP/Furthest Building You Can Reach.cpp:65
↓ 5 callers
Function
solve
DP/Number of Ways to Stay in the Same Place After Some Steps.cpp:93
↓ 5 callers
Function
solve
DP/DP on Grids/Unique Paths II.cpp:127
↓ 5 callers
Function
solve_DFS
Arrays/Jump Game IV.cpp:230
↓ 4 callers
Function
MFS
DP/Minimum Falling Path Sum.cpp:122
↓ 4 callers
Method
Union
Graph/Disjoint Set/Remove Max Number of Edges to Keep Graph Fully Traversable.cpp:38
↓ 4 callers
Method
Union
Graph/Disjoint Set/Maximize Spanning Tree Stability with Upgrades.cpp:33
↓ 4 callers
Function
bfs
Graph/Island Perimeter.cpp:212
↓ 4 callers
Function
bfs
Graph/Disjoint Set/Count the Number of Complete Components.cpp:243
↓ 4 callers
Function
binarySearch
DP/Maximum Profit in Job Scheduling.cpp:242
↓ 4 callers
Function
binarySearch
Binary search for the next event start time greater than the current event's end time
Arrays/Intervals_Based_Qn/Two Best Non-Overlapping Events.cpp:136
↓ 4 callers
Function
buildSegmentTree
Segment Tree/Range Sum Query - Mutable.cpp:154
↓ 4 callers
Function
canAllReachZero
Graph/BFS_DFS/Minimize the Maximum Edge Weight of Graph.cpp:272
↓ 4 callers
Function
check
strings/Minimum Time to Revert Word to Initial State I.cpp:91
↓ 4 callers
Function
check
Arrays/Arithmetic Subarrays.cpp:103
↓ 4 callers
Function
check
Arrays/Leetcode Easy/Check if Array Is Sorted and Rotated.cpp:148
↓ 4 callers
Function
checkWithDifferenceArrayTeq
Arrays/Difference Array Technique/Zero Array Transformation II.cpp:202
↓ 4 callers
Function
collectNodeWithHeight
Tree/Find Leaves Of Binary Tree.cpp:61
↓ 4 callers
Function
collectPaths
Tree/Path Sum II.cpp:56
↓ 4 callers
Function
computeLPS
Function to compute the LPS (Longest Proper Prefix which is also Suffix) array
strings/Easy Tagged/String Matching in an Array.cpp:152
↓ 4 callers
Function
computeScore
DP/Maximum Score From Grid Operations.cpp:256
↓ 4 callers
Function
constructST
Function to construct the segment tree
Segment Tree/Range Minimum Query.cpp:29
↓ 4 callers
Function
convert
Tree/Amount of Time for Binary Tree to Be Infected.cpp:110
↓ 4 callers
Function
countSteps
DP/DP on Strings/Freedom Trail.cpp:108
↓ 4 callers
Function
dfs
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:188
↓ 4 callers
Method
find
Graph/Disjoint Set/Disjoint set (Union-Find-Size).cpp:22
↓ 4 callers
Method
find
Graph/Disjoint Set/Count the Number of Complete Components.cpp:134
↓ 4 callers
Function
findFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:109
↓ 4 callers
Function
findLeftMostZero
Segment Tree/Longest Balanced Subarray II.cpp:248
↓ 4 callers
Function
flatten
Linked List/Flattening a Linked List.cpp:37
↓ 4 callers
Function
generate
DP/LIS & Variants/Largest Divisible Subset.cpp:105
↓ 4 callers
Function
getMappedNum
strings/Sort the Jumbled Numbers.cpp:171
↓ 4 callers
Method
getSize
Graph/BFS_DFS/Making A Large Island.cpp:230
↓ 4 callers
Function
getState
Sliding Window/Maximum Difference Between Even and Odd Frequency II.cpp:91
↓ 4 callers
Function
getValue
Heap/Maximum Total Subarray Value II.cpp:180
← previous
next →
101–200 of 3,557, ranked by callers