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
equals
HashSet/Minimum Pair Removal to Sort Array II.cpp:122
Method
equals
Design/Design Movie Rental System.cpp:124
Method
equationsPossible
Graph/Disjoint Set/Satisfiability of Equality Equations.cpp:36
Method
equilibriumPoint
Arrays/Cumulative_Sum(Prefix Array)/Find Pivot Index.cpp:15
Method
eraseOverlapIntervals
Greedy/Non-overlapping Intervals.cpp:13
Function
evalRPN
Stack/Evaluate Reverse Polish Notation.cpp:108
Method
evalRPN
Stack/Evaluate Reverse Polish Notation.cpp:29
Method
evaluateTree
Tree/Easy/Evaluate Boolean Binary Tree.cpp:14
Method
eventualSafeNodes
Graph/Find Eventual Safe States.cpp:33
Method
execTop
Execute the top task and return its userId
Design/Design Task Manager.cpp:47
Method
exist
Backtracking/Word Search.cpp:42
Method
factorial
Arrays/Factorials of large numbers.cpp:27
Method
fairCandySwap
Arrays/Fair Candy Swap.cpp:8
Method
fib
DP/1-D DP/Fibonacci Number.cpp:22
Method
fillCountArray
Arrays/Leetcode Easy/Find Common Characters.cpp:15
Method
fillNeighbors
Graph/Open the Lock.cpp:24
Function
finalPrices
Stack/Monotonic Stack/Easy/Final Prices With a Special Discount in a Shop.cpp:87
Method
finalPrices
Stack/Monotonic Stack/Easy/Final Prices With a Special Discount in a Shop.cpp:17
Method
find
Graph/Largest_Component_Size_by_Common_Factor.cpp:20
Method
find
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:163
Method
find
Graph/Bipartite Graph.cpp:110
Method
find
Graph/Minimum Spanning Tree (Kruskal's Algorithm).cpp:14
Method
find
Graph/Min Cost to Connect All Points.cpp:136
Method
find
Graph/Disjoint Set/Most Stones Removed with Same Row or Column.cpp:20
Method
find
Graph/Disjoint Set/Similar String Groups.cpp:18
Method
find
Graph/Disjoint Set/Detect Cycle using DSU.cpp:13
Method
find
Graph/Disjoint Set/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:17
Method
find
Graph/Disjoint Set/Max Area of Island.cpp:26
Method
find
find the parent of x
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:29
Method
find
Graph/Disjoint Set/Minimum Cost Walk in Weighted Graph.cpp:22
Method
find
Graph/Disjoint Set/Checking Existence of Edge Length Limited Paths.cpp:13
Method
find
Graph/Disjoint Set/Satisfiability of Equality Equations.cpp:13
Method
find
Graph/Disjoint Set/Greatest Common Divisor Traversal.cpp:29
Method
find
Graph/Disjoint Set/Validate Binary Tree Nodes.cpp:18
Method
find
Find with path compression
Graph/Disjoint Set/Minimize Hamming Distance After Swap Operations.cpp:20
Method
find
Graph/Disjoint Set/Number of Operations to Make Network Connected.cpp:14
Method
find
Graph/Disjoint Set/Number of Good Paths.cpp:13
Method
find
Graph/Disjoint Set/Count the Number of Complete Components.cpp:303
Method
find
Tree/Binary Tree Longest Consecutive Sequence II.cpp:42
Method
find
Tree/Binary Tree Longest Consecutive Sequence I.cpp:9
Method
find
Tree/Find Elements in a Contaminated Binary Tree.cpp:30
Function
find132pattern
Stack/132 Pattern.cpp:109
Method
find132pattern
Stack/132 Pattern.cpp:13
Method
find2
HashMap/Longest Balanced Substring II.cpp:191
Method
findAllConcatenatedWordsInADict
strings/Concatenated Words.cpp:38
Method
findAllPeople
Graph/BFS_DFS/Find All People With Secret.cpp:16
Method
findAllRecipes
Graph/Topological Sorting/Find All Possible Recipes from Given Supplies.cpp:15
Method
findAnagrams
Sliding Window/Find All Anagrams in a String.cpp:9
Method
findAndReplacePattern
HashMap/Find_and_Replace_Pattern.cpp:9
Function
findAnswer
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:158
Method
findAnswer
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:57
Method
findArray
Bit_Magic/Find The Original Array of Prefix Xor.cpp:12
Method
findBall
Arrays/2-D Array/Where Will the Ball Fall.cpp:9
Method
findBest
Sliding Window/Frequency of the Most Frequent Element.cpp:14
Function
findBottomLeftValue
Tree/Find Bottom Left Tree Value.cpp:143
Method
findBottomLeftValue
Tree/Find Bottom Left Tree Value.cpp:31
Function
findCenter
Graph/Easy/Find Center of Star Graph.cpp:90
Method
findCenter
Graph/Easy/Find Center of Star Graph.cpp:15
Method
findChampion
Graph/Find Champion II.cpp:15
Method
findCheapestPrice
Graph/Cheapest Flights Within K Stops.cpp:14
Method
findCircleNum
Graph/BFS_DFS/Number of Provinces.cpp:24
Method
findClosestElements
Arrays/Binary Search/Find K Closest Elements.cpp:10
Function
findComplement
Bit_Magic/Leetcode Easy/Number Complement.cpp:84
Method
findComplement
Bit_Magic/Leetcode Easy/Number Complement.cpp:14
Method
findContentChildren
Arrays/Leetcode Easy/Assign Cookies.cpp:14
Method
findCount
Graph/BFS_DFS/Maximize the Number of Target Nodes After Connecting Trees I.cpp:48
Method
findCountSmallest
Arrays/Binary Search/Kth Smallest Product of Two Sorted Arrays.cpp:17
Function
findCriticalAndPseudoCriticalEdges
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:88
Method
findCriticalAndPseudoCriticalEdges
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:230
Function
findDiagonalOrder
Arrays/2-D Array/Diagonal Traverse II.cpp:112
Method
findDiagonalOrder
Arrays/2-D Array/Diagonal Traverse II.cpp:12
Method
findDiagonalOrder
Arrays/2-D Array/Diagonal Traverse.cpp:20
Method
findDiameter
Graph/BFS_DFS/Find Minimum Diameter After Merging Two Trees.cpp:55
Method
findDiameter
Function to find the diameter of a tree using two BFS calls
Graph/BFS_DFS/Tree Diameter.cpp:39
Function
findDifferentBinaryString
strings/Find Unique Binary String.cpp:126
Method
findDifferentBinaryString
strings/Find Unique Binary String.cpp:14
Method
findDigitsSum
Arrays/Leetcode Easy/Count Largest Group.cpp:14
Method
findDuplicate
Arrays/Find the Duplicate Number.cpp:17
Method
findDuplicateSubtrees
Tree/Find Duplicate Subtrees.cpp:25
Method
findDuplicates
Arrays/Find All Duplicates in an Array.cpp:14
Method
findEquationValue
Mathematical/Erect the Fence.cpp:10
Function
findErrorNums
Arrays/Set Mismatch.cpp:104
Method
findErrorNums
Arrays/Set Mismatch.cpp:13
Function
findEvenNumbers
Mathematical/Leetcode Easy/Finding 3-Digit Even Numbers.cpp:121
Method
findEvenNumbers
Mathematical/Leetcode Easy/Finding 3-Digit Even Numbers.cpp:15
Function
findFarmland
Arrays/Find All Groups of Farmland.cpp:268
Method
findFarmland
Arrays/Find All Groups of Farmland.cpp:36
Method
findFarthestNode
BFS helper function to find the farthest node and its distance from the source
Graph/BFS_DFS/Tree Diameter.cpp:49
Method
findFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:48
Method
findFirstPosition
Arrays/Binary Search/Find First and Last Position of Element in Sorted Array.cpp:92
Method
findHeight
Tree/Height of Binary Tree After Subtree Removal Queries.cpp:20
Method
findInMountainArray
Arrays/Binary Search/Find in Mountain Array.cpp:76
Method
findItinerary
Graph/Reconstruct Itinerary.cpp:16
Method
findJudge
HashMap/Find the Town Judge.cpp:10
Method
findKDistantIndices
Arrays/Leetcode Easy/Find All K-Distant Indices in an Array.cpp:15
Method
findKRotation
Arrays/Binary Search/Find the Rotation Count in Rotated Sorted array.cpp:9
Method
findKthBit
Recursion/Find Kth Bit in Nth Binary String.cpp:15
Function
findKthLargest
Heap/Kth Largest Element in an Array.cpp:109
Method
findKthLargest
Heap/Kth Largest Element in an Array.cpp:33
Function
findKthNumber
Recursion/K-th Smallest in Lexicographical Order.cpp:186
← previous
next →
1,301–1,400 of 3,557, ranked by callers