MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

Methodequals
HashSet/Minimum Pair Removal to Sort Array II.cpp:122
Methodequals
Design/Design Movie Rental System.cpp:124
MethodequationsPossible
Graph/Disjoint Set/Satisfiability of Equality Equations.cpp:36
MethodequilibriumPoint
Arrays/Cumulative_Sum(Prefix Array)/Find Pivot Index.cpp:15
MethoderaseOverlapIntervals
Greedy/Non-overlapping Intervals.cpp:13
FunctionevalRPN
Stack/Evaluate Reverse Polish Notation.cpp:108
MethodevalRPN
Stack/Evaluate Reverse Polish Notation.cpp:29
MethodevaluateTree
Tree/Easy/Evaluate Boolean Binary Tree.cpp:14
MethodeventualSafeNodes
Graph/Find Eventual Safe States.cpp:33
MethodexecTop
Execute the top task and return its userId
Design/Design Task Manager.cpp:47
Methodexist
Backtracking/Word Search.cpp:42
Methodfactorial
Arrays/Factorials of large numbers.cpp:27
MethodfairCandySwap
Arrays/Fair Candy Swap.cpp:8
Methodfib
DP/1-D DP/Fibonacci Number.cpp:22
MethodfillCountArray
Arrays/Leetcode Easy/Find Common Characters.cpp:15
MethodfillNeighbors
Graph/Open the Lock.cpp:24
FunctionfinalPrices
Stack/Monotonic Stack/Easy/Final Prices With a Special Discount in a Shop.cpp:87
MethodfinalPrices
Stack/Monotonic Stack/Easy/Final Prices With a Special Discount in a Shop.cpp:17
Methodfind
Graph/Largest_Component_Size_by_Common_Factor.cpp:20
Methodfind
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:163
Methodfind
Graph/Bipartite Graph.cpp:110
Methodfind
Graph/Minimum Spanning Tree (Kruskal's Algorithm).cpp:14
Methodfind
Graph/Min Cost to Connect All Points.cpp:136
Methodfind
Graph/Disjoint Set/Most Stones Removed with Same Row or Column.cpp:20
Methodfind
Graph/Disjoint Set/Similar String Groups.cpp:18
Methodfind
Graph/Disjoint Set/Detect Cycle using DSU.cpp:13
Methodfind
Graph/Disjoint Set/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:17
Methodfind
Graph/Disjoint Set/Max Area of Island.cpp:26
Methodfind
find the parent of x
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:29
Methodfind
Graph/Disjoint Set/Minimum Cost Walk in Weighted Graph.cpp:22
Methodfind
Graph/Disjoint Set/Checking Existence of Edge Length Limited Paths.cpp:13
Methodfind
Graph/Disjoint Set/Satisfiability of Equality Equations.cpp:13
Methodfind
Graph/Disjoint Set/Greatest Common Divisor Traversal.cpp:29
Methodfind
Graph/Disjoint Set/Validate Binary Tree Nodes.cpp:18
Methodfind
Find with path compression
Graph/Disjoint Set/Minimize Hamming Distance After Swap Operations.cpp:20
Methodfind
Graph/Disjoint Set/Number of Operations to Make Network Connected.cpp:14
Methodfind
Graph/Disjoint Set/Number of Good Paths.cpp:13
Methodfind
Graph/Disjoint Set/Count the Number of Complete Components.cpp:303
Methodfind
Tree/Binary Tree Longest Consecutive Sequence II.cpp:42
Methodfind
Tree/Binary Tree Longest Consecutive Sequence I.cpp:9
Methodfind
Tree/Find Elements in a Contaminated Binary Tree.cpp:30
Functionfind132pattern
Stack/132 Pattern.cpp:109
Methodfind132pattern
Stack/132 Pattern.cpp:13
Methodfind2
HashMap/Longest Balanced Substring II.cpp:191
MethodfindAllConcatenatedWordsInADict
strings/Concatenated Words.cpp:38
MethodfindAllPeople
Graph/BFS_DFS/Find All People With Secret.cpp:16
MethodfindAllRecipes
Graph/Topological Sorting/Find All Possible Recipes from Given Supplies.cpp:15
MethodfindAnagrams
Sliding Window/Find All Anagrams in a String.cpp:9
MethodfindAndReplacePattern
HashMap/Find_and_Replace_Pattern.cpp:9
FunctionfindAnswer
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:158
MethodfindAnswer
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:57
MethodfindArray
Bit_Magic/Find The Original Array of Prefix Xor.cpp:12
MethodfindBall
Arrays/2-D Array/Where Will the Ball Fall.cpp:9
MethodfindBest
Sliding Window/Frequency of the Most Frequent Element.cpp:14
FunctionfindBottomLeftValue
Tree/Find Bottom Left Tree Value.cpp:143
MethodfindBottomLeftValue
Tree/Find Bottom Left Tree Value.cpp:31
FunctionfindCenter
Graph/Easy/Find Center of Star Graph.cpp:90
MethodfindCenter
Graph/Easy/Find Center of Star Graph.cpp:15
MethodfindChampion
Graph/Find Champion II.cpp:15
MethodfindCheapestPrice
Graph/Cheapest Flights Within K Stops.cpp:14
MethodfindCircleNum
Graph/BFS_DFS/Number of Provinces.cpp:24
MethodfindClosestElements
Arrays/Binary Search/Find K Closest Elements.cpp:10
FunctionfindComplement
Bit_Magic/Leetcode Easy/Number Complement.cpp:84
MethodfindComplement
Bit_Magic/Leetcode Easy/Number Complement.cpp:14
MethodfindContentChildren
Arrays/Leetcode Easy/Assign Cookies.cpp:14
MethodfindCount
Graph/BFS_DFS/Maximize the Number of Target Nodes After Connecting Trees I.cpp:48
MethodfindCountSmallest
Arrays/Binary Search/Kth Smallest Product of Two Sorted Arrays.cpp:17
FunctionfindCriticalAndPseudoCriticalEdges
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:88
MethodfindCriticalAndPseudoCriticalEdges
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:230
FunctionfindDiagonalOrder
Arrays/2-D Array/Diagonal Traverse II.cpp:112
MethodfindDiagonalOrder
Arrays/2-D Array/Diagonal Traverse II.cpp:12
MethodfindDiagonalOrder
Arrays/2-D Array/Diagonal Traverse.cpp:20
MethodfindDiameter
Graph/BFS_DFS/Find Minimum Diameter After Merging Two Trees.cpp:55
MethodfindDiameter
Function to find the diameter of a tree using two BFS calls
Graph/BFS_DFS/Tree Diameter.cpp:39
FunctionfindDifferentBinaryString
strings/Find Unique Binary String.cpp:126
MethodfindDifferentBinaryString
strings/Find Unique Binary String.cpp:14
MethodfindDigitsSum
Arrays/Leetcode Easy/Count Largest Group.cpp:14
MethodfindDuplicate
Arrays/Find the Duplicate Number.cpp:17
MethodfindDuplicateSubtrees
Tree/Find Duplicate Subtrees.cpp:25
MethodfindDuplicates
Arrays/Find All Duplicates in an Array.cpp:14
MethodfindEquationValue
Mathematical/Erect the Fence.cpp:10
FunctionfindErrorNums
Arrays/Set Mismatch.cpp:104
MethodfindErrorNums
Arrays/Set Mismatch.cpp:13
FunctionfindEvenNumbers
Mathematical/Leetcode Easy/Finding 3-Digit Even Numbers.cpp:121
MethodfindEvenNumbers
Mathematical/Leetcode Easy/Finding 3-Digit Even Numbers.cpp:15
FunctionfindFarmland
Arrays/Find All Groups of Farmland.cpp:268
MethodfindFarmland
Arrays/Find All Groups of Farmland.cpp:36
MethodfindFarthestNode
BFS helper function to find the farthest node and its distance from the source
Graph/BFS_DFS/Tree Diameter.cpp:49
MethodfindFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:48
MethodfindFirstPosition
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:92
MethodfindHeight
Tree/Height of Binary Tree After Subtree Removal Queries.cpp:20
MethodfindInMountainArray
Arrays/Binary Search/Find in Mountain Array.cpp:76
MethodfindItinerary
Graph/Reconstruct Itinerary.cpp:16
MethodfindJudge
HashMap/Find the Town Judge.cpp:10
MethodfindKDistantIndices
Arrays/Leetcode Easy/Find All K-Distant Indices in an Array.cpp:15
MethodfindKRotation
Arrays/Binary Search/Find the Rotation Count in Rotated Sorted array.cpp:9
MethodfindKthBit
Recursion/Find Kth Bit in Nth Binary String.cpp:15
FunctionfindKthLargest
Heap/Kth Largest Element in an Array.cpp:109
MethodfindKthLargest
Heap/Kth Largest Element in an Array.cpp:33
FunctionfindKthNumber
Recursion/K-th Smallest in Lexicographical Order.cpp:186
← previousnext →1,301–1,400 of 3,557, ranked by callers