MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

MethodPair
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:114
MethodPair
Graph/BFS_DFS/Minimize the Maximum Edge Weight of Graph.cpp:174
MethodPair
DP/Constrained Subsequence Sum.cpp:204
MethodPair
Tree/Lowest Common Ancestor of Deepest Leaves.cpp:135
MethodPair
HashMap/Longest Balanced Substring II.cpp:119
MethodPair
HashMap/Leetcode Easy/Coupon Code Validator.cpp:119
MethodPair
HashSet/Minimum Pair Removal to Sort Array II.cpp:116
MethodPair
Design/Design HashMap.cpp:132
FunctionPair<Integer, Integer> solve
Tree/Count Nodes Equal to Average of Subtree.cpp:144
MethodParkingSystem
Design/Design Parking System.cpp:10
MethodPredictTheWinner
DP/Game Strategy/Predict the Winner.cpp:33
MethodPriceShop
Design/Design Movie Rental System.cpp:119
FunctionProductOfNumbers
Arrays/Product of the Last K Numbers.cpp:115
MethodProductOfNumbers
Arrays/Product of the Last K Numbers.cpp:17
MethodRMIQ
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
MethodRMIQ
Function to return the index of the maximum element in the range from a to b
Segment Tree/Range Maximum Index Query.cpp:61
FunctionRMQ
Function to return the minimum element in the range from a to b
Segment Tree/Range Minimum Query.cpp:51
MethodRMQ
Segment Tree/Range Minimum Query.cpp:109
MethodRandomizedSet
Design/Insert Delete GetRandom O(1).cpp:14
MethodRentedMovie
Design/Design Movie Rental System.cpp:136
MethodReverse
Recursion/Reverse a Stack.cpp:16
MethodRobot
store all perimter/boundary cell positions O(width + height) S.C : (width + height)
Design/Walking Robot Simulation II.cpp:20
MethodRouter
Design/Implement Router.cpp:34
FunctionSeatManager
Design/Seat Reservation Manager.cpp:122
MethodSeatManager
Design/Seat Reservation Manager.cpp:15
MethodSegmentTree
Heap/Maximum Total Subarray Value II.cpp:17
MethodSmallestInfiniteSet
HashSet/Smallest Number in Infinite Set.cpp:13
MethodSnapshotArray
Design/Snapshot Array.cpp:19
MethodSolution
Mathematical/Shuffle an Array.cpp:10
MethodSolution
Mathematical/Random Point in Non-overlapping Rectangles.cpp:11
MethodSolution
Graph/Number of Islands.cpp:118
MethodSolution
Graph/BFS_DFS/Check if There is a Valid Path in a Grid.cpp:80
MethodSolution
O(N) space
Linked List/Linked List Random Node.cpp:11
MethodSolution
Trie/Replace Words.cpp:107
MethodSpreadsheet
Design/Design Spreadsheet.cpp:17
MethodStockSpanner
Stack/Online Stock Span.cpp:12
MethodSummaryRanges
Arrays/Intervals_Based_Qn/Data Stream as Disjoint Intervals.cpp:12
MethodTask
Design/Design Task Manager.cpp:71
MethodTaskManager
Initialize with a list of [userId, taskId, priority]
Design/Design Task Manager.cpp:22
MethodTicTacToe
Design/Design Tic-Tac-Toe.cpp:68
MethodTimeMap
Design/Time Based Key-Value Store.cpp:10
MethodTotalCount
DP/Count digit groupings of a number.cpp:40
FunctionTotalWays
DP/Count possible ways to construct buildings.cpp:137
MethodTotalWays
DP/Count possible ways to construct buildings.cpp:36
MethodTreeAncestor
Binary Lifting/Kth Ancestor of a Tree Node.cpp:19
MethodTrie
Trie/Implement Trie (Prefix Tree).cpp:36
MethodTrie
Trie/Count Prefix and Suffix Pairs I.cpp:68
MethodTrie
Trie/Counting Words With a Given Prefix.cpp:51
FunctionTrieNode
Trie/Count Prefix and Suffix Pairs I.cpp:174
FunctionTrieNode
Trie/Counting Words With a Given Prefix.cpp:126
MethodTrieNode
Trie/Replace Words.cpp:99
MethodTrieNode
Trie/Implement Trie (Prefix Tree).cpp:97
MethodTrieNode
Trie/Longest Common Suffix Queries.cpp:108
MethodTrieNode
Trie/Sum of Prefix Scores of Strings.cpp:91
MethodUndergroundSystem
Design/Design Underground System.cpp:12
MethodUnion
Graph/Largest_Component_Size_by_Common_Factor.cpp:27
MethodUnion
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:170
MethodUnion
Graph/Bipartite Graph.cpp:117
MethodUnion
Graph/Minimum Spanning Tree (Kruskal's Algorithm).cpp:21
MethodUnion
Graph/Min Cost to Connect All Points.cpp:143
MethodUnion
Graph/BFS_DFS/Power Grid Maintenance.cpp:177
MethodUnion
Graph/Disjoint Set/Most Stones Removed with Same Row or Column.cpp:27
MethodUnion
Graph/Disjoint Set/Similar String Groups.cpp:25
MethodUnion
Graph/Disjoint Set/Detect Cycle using DSU.cpp:20
MethodUnion
Graph/Disjoint Set/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:24
MethodUnion
Graph/Disjoint Set/Minimum Cost Walk in Weighted Graph.cpp:28
MethodUnion
Graph/Disjoint Set/Checking Existence of Edge Length Limited Paths.cpp:20
MethodUnion
Graph/Disjoint Set/Satisfiability of Equality Equations.cpp:20
MethodUnion
Graph/Disjoint Set/Validate Binary Tree Nodes.cpp:25
MethodUnion
Graph/Disjoint Set/Minimize Hamming Distance After Swap Operations.cpp:27
MethodUnion
Graph/Disjoint Set/Number of Operations to Make Network Connected.cpp:21
MethodUnion
Graph/Disjoint Set/Number of Good Paths.cpp:20
MethodUnionFind
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:17
MethodUnionFind
Graph/Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree.cpp:155
MethodUnionFind
Graph/Disjoint Set/Max Area of Island.cpp:17
MethodWordDictionary
Design/Design Add and Search Words Data Structure.cpp:29
Functionadd
Arrays/Product of the Last K Numbers.cpp:120
Methodadd
Add new task
Design/Design Task Manager.cpp:29
MethodaddBack
HashSet/Smallest Number in Infinite Set.cpp:34
MethodaddBinary
Bit_Magic/Leetcode Easy/Add Binary.cpp:15
MethodaddCar
Design/Design Parking System.cpp:16
MethodaddDigits
Mathematical/Add Digits.cpp:26
MethodaddEdge
Graph/Dijkstra'a Based Problems/Design Graph With Shortest Path Calculator.cpp:29
MethodaddEdge
Graph/Floyd Warshall/Design Graph With Shortest Path Calculator.cpp:44
MethodaddNode
Trie/Palindrome Pairs.cpp:28
MethodaddNodeAfter
Add a new node with count `c` after node `prevNode`
Design/All O`one Data Structure.cpp:30
FunctionaddNum
Design/Find Median from Data Stream.cpp:110
MethodaddNum
Arrays/Intervals_Based_Qn/Data Stream as Disjoint Intervals.cpp:16
MethodaddNum
Design/Find Median from Data Stream.cpp:23
MethodaddOne
Linked List/Plus One Linked List.cpp:17
MethodaddOne
Bit_Magic/Number of Steps to Reduce a Number in Binary Representation to One.cpp:15
FunctionaddOneRow
Tree/Add One Row to Tree.cpp:120
MethodaddOneRow
Tree/Add One Row to Tree.cpp:37
MethodaddOperators
Backtracking/Expression Add Operators.cpp:41
MethodaddPacket
Design/Implement Router.cpp:38
MethodaddParent
Tree/All Nodes Distance K in Binary Tree.cpp:11
MethodaddSpaces
strings/Adding Spaces to a String.cpp:15
MethodaddStrings
strings/Add Strings.cpp:8
MethodaddToSet
Arrays/2-D Array/Get Biggest Three Rhombus Sums in a Grid.cpp:182
MethodaddTwoNumbers
Linked List/Add Two Numbers II.cpp:24
← previousnext →601–700 of 3,557, ranked by callers