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
Pair
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:114
Method
Pair
Graph/BFS_DFS/Minimize the Maximum Edge Weight of Graph.cpp:174
Method
Pair
DP/Constrained Subsequence Sum.cpp:204
Method
Pair
Tree/Lowest Common Ancestor of Deepest Leaves.cpp:135
Method
Pair
HashMap/Longest Balanced Substring II.cpp:119
Method
Pair
HashMap/Leetcode Easy/Coupon Code Validator.cpp:119
Method
Pair
HashSet/Minimum Pair Removal to Sort Array II.cpp:116
Method
Pair
Design/Design HashMap.cpp:132
Function
Pair<Integer, Integer> solve
Tree/Count Nodes Equal to Average of Subtree.cpp:144
Method
ParkingSystem
Design/Design Parking System.cpp:10
Method
PredictTheWinner
DP/Game Strategy/Predict the Winner.cpp:33
Method
PriceShop
Design/Design Movie Rental System.cpp:119
Function
ProductOfNumbers
Arrays/Product of the Last K Numbers.cpp:115
Method
ProductOfNumbers
Arrays/Product of the Last K Numbers.cpp:17
Method
RMIQ
Function to return the index of the maximum element in the range from a to b
Segment Tree/Find Building Where Alice and Bob Can Meet.cpp:63
Method
RMIQ
Function to return the index of the maximum element in the range from a to b
Segment Tree/Range Maximum Index Query.cpp:61
Function
RMQ
Function to return the minimum element in the range from a to b
Segment Tree/Range Minimum Query.cpp:51
Method
RMQ
Segment Tree/Range Minimum Query.cpp:109
Method
RandomizedSet
Design/Insert Delete GetRandom O(1).cpp:14
Method
RentedMovie
Design/Design Movie Rental System.cpp:136
Method
Reverse
Recursion/Reverse a Stack.cpp:16
Method
Robot
store all perimter/boundary cell positions O(width + height) S.C : (width + height)
Design/Walking Robot Simulation II.cpp:20
Method
Router
Design/Implement Router.cpp:34
Function
SeatManager
Design/Seat Reservation Manager.cpp:122
Method
SeatManager
Design/Seat Reservation Manager.cpp:15
Method
SegmentTree
Heap/Maximum Total Subarray Value II.cpp:17
Method
SmallestInfiniteSet
HashSet/Smallest Number in Infinite Set.cpp:13
Method
SnapshotArray
Design/Snapshot Array.cpp:19
Method
Solution
Mathematical/Shuffle an Array.cpp:10
Method
Solution
Mathematical/Random Point in Non-overlapping Rectangles.cpp:11
Method
Solution
Graph/Number of Islands.cpp:118
Method
Solution
Graph/BFS_DFS/Check if There is a Valid Path in a Grid.cpp:80
Method
Solution
O(N) space
Linked List/Linked List Random Node.cpp:11
Method
Solution
Trie/Replace Words.cpp:107
Method
Spreadsheet
Design/Design Spreadsheet.cpp:17
Method
StockSpanner
Stack/Online Stock Span.cpp:12
Method
SummaryRanges
Arrays/Intervals_Based_Qn/Data Stream as Disjoint Intervals.cpp:12
Method
Task
Design/Design Task Manager.cpp:71
Method
TaskManager
Initialize with a list of [userId, taskId, priority]
Design/Design Task Manager.cpp:22
Method
TicTacToe
Design/Design Tic-Tac-Toe.cpp:68
Method
TimeMap
Design/Time Based Key-Value Store.cpp:10
Method
TotalCount
DP/Count digit groupings of a number.cpp:40
Function
TotalWays
DP/Count possible ways to construct buildings.cpp:137
Method
TotalWays
DP/Count possible ways to construct buildings.cpp:36
Method
TreeAncestor
Binary Lifting/Kth Ancestor of a Tree Node.cpp:19
Method
Trie
Trie/Implement Trie (Prefix Tree).cpp:36
Method
Trie
Trie/Count Prefix and Suffix Pairs I.cpp:68
Method
Trie
Trie/Counting Words With a Given Prefix.cpp:51
Function
TrieNode
Trie/Count Prefix and Suffix Pairs I.cpp:174
Function
TrieNode
Trie/Counting Words With a Given Prefix.cpp:126
Method
TrieNode
Trie/Replace Words.cpp:99
Method
TrieNode
Trie/Implement Trie (Prefix Tree).cpp:97
Method
TrieNode
Trie/Longest Common Suffix Queries.cpp:108
Method
TrieNode
Trie/Sum of Prefix Scores of Strings.cpp:91
Method
UndergroundSystem
Design/Design Underground System.cpp:12
Method
Union
Graph/Largest_Component_Size_by_Common_Factor.cpp:27
Method
Union
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:170
Method
Union
Graph/Bipartite Graph.cpp:117
Method
Union
Graph/Minimum Spanning Tree (Kruskal's Algorithm).cpp:21
Method
Union
Graph/Min Cost to Connect All Points.cpp:143
Method
Union
Graph/BFS_DFS/Power Grid Maintenance.cpp:177
Method
Union
Graph/Disjoint Set/Most Stones Removed with Same Row or Column.cpp:27
Method
Union
Graph/Disjoint Set/Similar String Groups.cpp:25
Method
Union
Graph/Disjoint Set/Detect Cycle using DSU.cpp:20
Method
Union
Graph/Disjoint Set/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:24
Method
Union
Graph/Disjoint Set/Minimum Cost Walk in Weighted Graph.cpp:28
Method
Union
Graph/Disjoint Set/Checking Existence of Edge Length Limited Paths.cpp:20
Method
Union
Graph/Disjoint Set/Satisfiability of Equality Equations.cpp:20
Method
Union
Graph/Disjoint Set/Validate Binary Tree Nodes.cpp:25
Method
Union
Graph/Disjoint Set/Minimize Hamming Distance After Swap Operations.cpp:27
Method
Union
Graph/Disjoint Set/Number of Operations to Make Network Connected.cpp:21
Method
Union
Graph/Disjoint Set/Number of Good Paths.cpp:20
Method
UnionFind
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:17
Method
UnionFind
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:155
Method
UnionFind
Graph/Disjoint Set/Max Area of Island.cpp:17
Method
WordDictionary
Design/Design Add and Search Words Data Structure.cpp:29
Function
add
Arrays/Product of the Last K Numbers.cpp:120
Method
add
Add new task
Design/Design Task Manager.cpp:29
Method
addBack
HashSet/Smallest Number in Infinite Set.cpp:34
Method
addBinary
Bit_Magic/Leetcode Easy/Add Binary.cpp:15
Method
addCar
Design/Design Parking System.cpp:16
Method
addDigits
Mathematical/Add Digits.cpp:26
Method
addEdge
Graph/Dijkstra'a Based Problems/Design Graph With Shortest Path Calculator.cpp:29
Method
addEdge
Graph/Floyd Warshall/Design Graph With Shortest Path Calculator.cpp:44
Method
addNode
Trie/Palindrome Pairs.cpp:28
Method
addNodeAfter
Add a new node with count `c` after node `prevNode`
Design/All O`one Data Structure.cpp:30
Function
addNum
Design/Find Median from Data Stream.cpp:110
Method
addNum
Arrays/Intervals_Based_Qn/Data Stream as Disjoint Intervals.cpp:16
Method
addNum
Design/Find Median from Data Stream.cpp:23
Method
addOne
Linked List/Plus One Linked List.cpp:17
Method
addOne
Bit_Magic/Number of Steps to Reduce a Number in Binary Representation to One.cpp:15
Function
addOneRow
Tree/Add One Row to Tree.cpp:120
Method
addOneRow
Tree/Add One Row to Tree.cpp:37
Method
addOperators
Backtracking/Expression Add Operators.cpp:41
Method
addPacket
Design/Implement Router.cpp:38
Method
addParent
Tree/All Nodes Distance K in Binary Tree.cpp:11
Method
addSpaces
strings/Adding Spaces to a String.cpp:15
Method
addStrings
strings/Add Strings.cpp:8
Method
addToSet
Arrays/2-D Array/Get Biggest Three Rhombus Sums in a Grid.cpp:182
Method
addTwoNumbers
Linked List/Add Two Numbers II.cpp:24
← previous
next →
601–700 of 3,557, ranked by callers