MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

↓ 10 callersMethodfind
Graph/BFS_DFS/Making A Large Island.cpp:210
↓ 10 callersMethodfind
Tree/Sum Root to Leaf Numbers.cpp:17
↓ 10 callersMethodfind
Design/Design a Number Container System.cpp:38
↓ 10 callersFunctionfindMaxDiff
Tree/Maximum difference between node and its ancestor.cpp:131
↓ 10 callersFunctiongetCoord
DP/Minimum Distance to Type a Word Using Two Fingers.cpp:272
↓ 10 callersFunctionrotate
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:170
↓ 10 callersFunctionsolve
DP/Target Sum.cpp:211
↓ 10 callersFunctionsolve
Tree/Pseudo-Palindromic Paths in a Binary Tree.cpp:132
↓ 10 callersFunctionsolve
Tree/Count Nodes Equal to Average of Subtree.cpp:113
↓ 10 callersFunctionsolve
Bit_Magic/Leetcode Easy/Sum of All Subset XOR Totals.cpp:131
↓ 10 callersFunctionsum
Tree/Count Nodes Equal to Average of Subtree.cpp:100
↓ 9 callersMethodaddAll
Mathematical/Fancy Sequence.cpp:48
↓ 9 callersMethodfind
Backtracking/Word Search.cpp:20
↓ 9 callersMethodgetValue
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String I.cpp:99
↓ 9 callersFunctionnewNode
Tree/Diagonal Tree Traversal (Recursive: using map).cpp:19
↓ 9 callersFunctionsolve
Recursion/Power Set.cpp:122
↓ 8 callersFunctionMAH
Stack/Maximal Rectangle.cpp:266
↓ 8 callersFunctionaddToSet
Arrays/2-D Array/Get Biggest Three Rhombus Sums in a Grid.cpp:287
↓ 8 callersFunctionbfs
Arrays/Jump Game III.cpp:107
↓ 8 callersMethodfind
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:25
↓ 8 callersFunctiongetDigitSum
Arrays/Max Sum of a Pair With Equal Sum of Digits.cpp:165
↓ 8 callersFunctionisSubsetSum
DP/Knapsack Series/Partition Equal Subset Sum (Bottom UP & Memo).cpp:161
↓ 8 callersFunctionmatrixMultiplication
Function to multiply two matrices
Mathematical/Matrix Exponentiation.cpp:16
↓ 8 callersFunctionremoveSubstring
Stack/Maximum Score From Removing Substrings.cpp:192
↓ 8 callersFunctionsolve
DP/DP on Strings/Palindrome Partitioning II.cpp:162
↓ 7 callersFunctionDFSBob
Graph/BFS_DFS/Most Profitable Path in a Tree.cpp:275
↓ 7 callersFunctionbacktracking
Tries to build a valid subsequence of exact length 'maxLen'
Backtracking/Longest Subsequence Repeated k Times.cpp:272
↓ 7 callersFunctiondfs
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:362
↓ 7 callersFunctionmerge
Arrays/Intervals_Based_Qn/Merge Intervals.cpp:127
↓ 7 callersFunctionmergeTwoLists
Linked List/Merge Two Sorted Lists.cpp:90
↓ 7 callersMethodreverse
strings/Construct Smallest Number From DI String.cpp:130
↓ 7 callersMethodreverse
Arrays/Rotating_an_Array.cpp:9
↓ 7 callersFunctionsolve
DP/Maximum Strength of K Disjoint Subarrays.cpp:73
↓ 7 callersFunctionsolve
Backtracking/Generate Parentheses.cpp:143
↓ 7 callersFunctionsolve
Backtracking/All Unique Permutations of an array.cpp:175
↓ 7 callersFunctionsolve
Backtracking/Word Break II.cpp:113
↓ 7 callersFunctionsolve
Backtracking/The k-th Lexicographical String of All Happy Strings of Length n.cpp:137
↓ 7 callersFunctionsolve
Recursion/K-th Smallest in Lexicographical Order.cpp:166
↓ 7 callersMethodsum
Design/Map Sum Pairs.cpp:19
↓ 6 callersMethodUnion
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:32
↓ 6 callersFunctionadd
Tree/Add One Row to Tree.cpp:98
↓ 6 callersFunctionaddEdge
Graph/BFS_Traversal.cpp:4
↓ 6 callersFunctioncheck
Graph/Disjoint Set/Maximize Spanning Tree Stability with Upgrades.cpp:205
↓ 6 callersFunctionfindDiameter
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 callersFunctionflattenBST
Recursion/Flatten BST to sorted list.cpp:105
↓ 6 callersFunctionisSet
Bit_Magic/Minimize XOR.cpp:159
↓ 6 callersFunctionmatrixExponentiation
Function to raise matrix base to the power exponent (Just like Binary exponentiation)
Mathematical/Matrix Exponentiation.cpp:26
↓ 6 callersFunctionnCr
nCr using Fermat's Little Theorem
Mathematical/Count the Number of Arrays with K Matching Adjacent Elements.cpp:184
↓ 6 callersFunctionpropagate
Segment Tree/Longest Balanced Subarray II.cpp:216
↓ 6 callersFunctionsolve
DP/Digit DP/Maximize the Number of Partitions After Operations.cpp:81
↓ 6 callersFunctionupdateRange
Segment Tree/Longest Balanced Subarray II.cpp:229
↓ 6 callersFunctionupdateSegTree
Segment Tree/Block Placement Queries.cpp:195
↓ 5 callersFunctiondfs
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:178
↓ 5 callersFunctionfindPower
Fast exponentiation (binary exponentiation)
DP/Digit DP/Find Sum of Array Product of Magical Sequences.cpp:200
↓ 5 callersFunctionlis
DP/LIS & Variants/Longest String Chain.cpp:38
↓ 5 callersFunctionlowerBound
Arrays/Binary Search/Successful Pairs of Spells and Potions.cpp:148
↓ 5 callersFunctionminCoinsToGetS
DP/Perfect Squares.cpp:156
↓ 5 callersFunctionminSquares
DP/Perfect Squares.cpp:200
↓ 5 callersFunctionremoveDuplicates
Arrays/Two Pointer/Remove Duplicates from Sorted Array.cpp:31
↓ 5 callersMethodreverse
Mathematical/Reverse Integer.cpp:9
↓ 5 callersMethodreverse
DP/DP on Strings/Count Number of Balanced Permutations.cpp:179
↓ 5 callersFunctionsolve
DP/Champagne Tower.cpp:88
↓ 5 callersFunctionsolve
DP/Longest Palindromic Substring.cpp:215
↓ 5 callersFunctionsolve
DP/Maximum Length of a Concatenated String with Unique Characters.cpp:93
↓ 5 callersFunctionsolve
DP/Number of Music Playlists.cpp:18
↓ 5 callersFunctionsolve
DP/Furthest Building You Can Reach.cpp:65
↓ 5 callersFunctionsolve
DP/Number of Ways to Stay in the Same Place After Some Steps.cpp:93
↓ 5 callersFunctionsolve
DP/DP on Grids/Unique Paths II.cpp:127
↓ 5 callersFunctionsolve_DFS
Arrays/Jump Game IV.cpp:230
↓ 4 callersFunctionMFS
DP/Minimum Falling Path Sum.cpp:122
↓ 4 callersMethodUnion
Graph/Disjoint Set/Remove Max Number of Edges to Keep Graph Fully Traversable.cpp:38
↓ 4 callersMethodUnion
Graph/Disjoint Set/Maximize Spanning Tree Stability with Upgrades.cpp:33
↓ 4 callersFunctionbfs
Graph/Island Perimeter.cpp:212
↓ 4 callersFunctionbfs
Graph/Disjoint Set/Count the Number of Complete Components.cpp:243
↓ 4 callersFunctionbinarySearch
DP/Maximum Profit in Job Scheduling.cpp:242
↓ 4 callersFunctionbinarySearch
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 callersFunctionbuildSegmentTree
Segment Tree/Range Sum Query - Mutable.cpp:154
↓ 4 callersFunctioncanAllReachZero
Graph/BFS_DFS/Minimize the Maximum Edge Weight of Graph.cpp:272
↓ 4 callersFunctioncheck
strings/Minimum Time to Revert Word to Initial State I.cpp:91
↓ 4 callersFunctioncheck
Arrays/Arithmetic Subarrays.cpp:103
↓ 4 callersFunctioncheck
Arrays/Leetcode Easy/Check if Array Is Sorted and Rotated.cpp:148
↓ 4 callersFunctioncheckWithDifferenceArrayTeq
Arrays/Difference Array Technique/Zero Array Transformation II.cpp:202
↓ 4 callersFunctioncollectNodeWithHeight
Tree/Find Leaves Of Binary Tree.cpp:61
↓ 4 callersFunctioncollectPaths
Tree/Path Sum II.cpp:56
↓ 4 callersFunctioncomputeLPS
Function to compute the LPS (Longest Proper Prefix which is also Suffix) array
strings/Easy Tagged/String Matching in an Array.cpp:152
↓ 4 callersFunctioncomputeScore
DP/Maximum Score From Grid Operations.cpp:256
↓ 4 callersFunctionconstructST
Function to construct the segment tree
Segment Tree/Range Minimum Query.cpp:29
↓ 4 callersFunctionconvert
Tree/Amount of Time for Binary Tree to Be Infected.cpp:110
↓ 4 callersFunctioncountSteps
DP/DP on Strings/Freedom Trail.cpp:108
↓ 4 callersFunctiondfs
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:188
↓ 4 callersMethodfind
Graph/Disjoint Set/Disjoint set (Union-Find-Size).cpp:22
↓ 4 callersMethodfind
Graph/Disjoint Set/Count the Number of Complete Components.cpp:134
↓ 4 callersFunctionfindFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:109
↓ 4 callersFunctionfindLeftMostZero
Segment Tree/Longest Balanced Subarray II.cpp:248
↓ 4 callersFunctionflatten
Linked List/Flattening a Linked List.cpp:37
↓ 4 callersFunctiongenerate
DP/LIS & Variants/Largest Divisible Subset.cpp:105
↓ 4 callersFunctiongetMappedNum
strings/Sort the Jumbled Numbers.cpp:171
↓ 4 callersMethodgetSize
Graph/BFS_DFS/Making A Large Island.cpp:230
↓ 4 callersFunctiongetState
Sliding Window/Maximum Difference Between Even and Odd Frequency II.cpp:91
↓ 4 callersFunctiongetValue
Heap/Maximum Total Subarray Value II.cpp:180
← previousnext →101–200 of 3,557, ranked by callers