MCPcopy Create free account

hub / github.com/MAZHARMIK/Interview_DS_Algo / functions

Functions3,557 in github.com/MAZHARMIK/Interview_DS_Algo

Methoddfs
Graph/Reconstruct Itinerary.cpp:75
Methoddfs
Graph/Evaluate Division.cpp:10
Methoddfs
Graph/Number of Islands.cpp:15
Methoddfs
Graph/Keys and Rooms.cpp:12
Methoddfs
Graph/Dijkstra'a Based Problems/Minimum Cost to Make at Least One Valid Path in a Grid.cpp:17
Methoddfs
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:79
Methoddfs
Graph/BFS_DFS/Maximum Number of K-Divisible Components.cpp:17
Methoddfs
Graph/BFS_DFS/Longest Cycle in a Graph.cpp:12
Methoddfs
Graph/BFS_DFS/Most Stones Removed with Same Row or Column.cpp:17
Methoddfs
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:73
Methoddfs
Graph/BFS_DFS/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:12
Methoddfs
Graph/BFS_DFS/Number of Provinces.cpp:12
Methoddfs
Graph/BFS_DFS/Max_Area_of_Island.cpp:15
Methoddfs
Graph/BFS_DFS/Minimize the Maximum Edge Weight of Graph.cpp:96
Methoddfs
Graph/BFS_DFS/Check if There is a Valid Path in a Grid.cpp:27
Methoddfs
Graph/BFS_DFS/Find All People With Secret.cpp:143
Methoddfs
Graph/BFS_DFS/Reorder Routes to Make All Paths Lead to the City Zero.cpp:11
Methoddfs
Graph/BFS_DFS/Making A Large Island.cpp:337
Methoddfs
O(c + n)
Graph/BFS_DFS/Power Grid Maintenance.cpp:18
Methoddfs
Graph/BFS_DFS/Maximize the Number of Target Nodes After Connecting Trees I.cpp:93
Methoddfs
Graph/BFS_DFS/Minimum Score of a Path Between Two Cities.cpp:13
Methoddfs
Graph/BFS_DFS/Maximum Candies You Can Get from Boxes.cpp:17
Methoddfs
Recursive DFS function to find the Eulerian path
Graph/Euler/Valid Arrangement of Pairs.cpp:85
Methoddfs
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:168
Methoddfs
Graph/Disjoint Set/Count the Number of Complete Components.cpp:15
Methoddfs
Graph/Topological Sorting/Course Schedule IV.cpp:16
Methoddfs
Graph/Topological Sorting/Build a Matrix With Conditions.cpp:47
Methoddfs
DP/Number of Increasing Paths in a Grid.cpp:32
Methoddfs
DP/Maximum Points After Collecting Coins From All Nodes.cpp:15
Methoddfs
DP/Maximum Profit from Trading Stocks with Discounts.cpp:120
Methoddfs
Arrays/Find All Groups of Farmland.cpp:20
Methoddfs
Arrays/Jump Game III.cpp:16
Methoddfs
Arrays/2-D Array/Maximum Number of Points From Grid Queries.cpp:72
Methoddfs
Arrays/2-D Array/Shortest Bridge.cpp:32
Methoddfs
Arrays/2-D Array/DFS/Number of Closed Islands.cpp:12
Methoddfs
Arrays/2-D Array/DFS/Number of Enclaves.cpp:12
Methoddfs
Arrays/2-D Array/DFS/Count Unguarded Cells in the Grid.cpp:94
Methoddfs
Arrays/2-D Array/DFS/Pacific Atlantic Water Flow.cpp:134
Methoddfs
Arrays/Binary Search/Last Day Where You Can Still Cross.cpp:15
Methoddfs
Tree/Count Good Nodes in Binary Tree.cpp:9
Methoddfs
Tree/Maximum Product of Splitted Binary Tree.cpp:64
Methoddfs
Tree/Longest ZigZag Path in a Binary Tree.cpp:12
Methoddfs
Tree/Check Completeness of a Binary Tree.cpp:51
Methoddfs
Tree/Find Elements in a Contaminated Binary Tree.cpp:16
Methoddfs
Tree/BST/Find Mode in Binary Search Tree.cpp:15
Methoddfs
Backtracking/The Number of Beautiful Subsets.cpp:17
Methoddfs
Backtracking/N-Queens_II.cpp:18
Methoddfs
Backtracking/Unique Paths III.cpp:14
Methoddfs
Bit_Magic/Maximum Length of a Concatenated String with Unique Characters.cpp:12
Methoddfs
Binary Lifting/Number of Ways to Assign Edge Weights II.cpp:23
MethoddfsBase
Graph/Sum of Distances in Tree.cpp:14
MethoddfsFill
Graph/Strongly Connected Components (Kosaraju's Algo).cpp:15
MethoddfsTraverse
Graph/Strongly Connected Components (Kosaraju's Algo).cpp:29
MethoddiagWin
Design/Design Tic-Tac-Toe.cpp:97
MethoddiagonalSort
Arrays/2-D Array/Sort the Matrix Diagonally.cpp:17
Methoddiameter
Tree/Diameter of Binary Tree.cpp:14
MethoddiameterOfBinaryTree
Tree/Diameter of Binary Tree.cpp:27
MethoddiffWaysToCompute
Recursion/Different Ways to Add Parentheses.cpp:45
MethoddifferenceOfSums
Mathematical/Divisible and Non-divisible Sums Difference.cpp:16
Methoddijkstra
Function to find the shortest distance of all the vertices from the source vertex S.
Graph/Dijkstra’s Algorithm(set).cpp:15
Methoddijkstra
Function to find the shortest distance of all the vertices from the source vertex S.
Graph/Dijkstra’s Algorithm(Priority Queue).cpp:15
Methoddijkstra
Khandaani Dijkstra's algorithm to find shortest paths from a source city
Graph/Dijkstra'a Based Problems/Find the City With the Smallest Number of Neighbors at a Threshold Distance.cpp:23
Methoddijkstra
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:18
Methoddijkstra
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String I.cpp:13
Methoddijkstra
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String II.cpp:42
Methoddijkstra
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:17
MethoddijkstraAlgorithm
Graph/Dijkstra'a Based Problems/Modify Graph Edge Weights.cpp:107
Methoddistance
Arrays/Cumulative_Sum(Prefix Array)/Sum of Distances.cpp:17
MethoddistanceK
Tree/All Nodes Distance K in Binary Tree.cpp:67
MethoddistanceLimitedPathsExist
Graph/Disjoint Set/Checking Existence of Edge Length Limited Paths.cpp:38
MethoddistributeCandies
Mathematical/Distribute Candies Among Children II.cpp:15
MethoddistributeCandy
Tree/Distribute Coins in Binary Tree.cpp:47
MethoddistributeCoins
Tree/Distribute Coins in Binary Tree.cpp:29
MethoddistributeCookies
Backtracking/Fair Distribution of Cookies.cpp:34
FunctiondivideArray
Arrays/Leetcode Easy/Divide Array Into Equal Pairs.cpp:147
MethoddivideArray
Arrays/Leetcode Easy/Divide Array Into Equal Pairs.cpp:14
MethoddivideArray
Arrays/Leetcode Easy/Divide Array Into Arrays With Max Difference.cpp:14
MethoddivideConquer
Arrays/Maximum_Subarray.cpp:32
FunctiondividePlayers
Arrays/Divide Players Into Teams of Equal Skill.cpp:133
MethoddividePlayers
Arrays/Divide Players Into Teams of Equal Skill.cpp:15
MethoddivideString
strings/Easy Tagged/Divide a String Into Groups of Size k.cpp:14
FunctiondoesAliceWin
Mathematical/Leetcode Easy/Vowels Game in a String.cpp:65
MethoddoesAliceWin
Mathematical/Leetcode Easy/Vowels Game in a String.cpp:15
FunctiondoesValidArrayExist
Bit_Magic/Neighboring Bitwise XOR.cpp:98
MethoddoesValidArrayExist
Bit_Magic/Neighboring Bitwise XOR.cpp:14
FunctiondoubleIt
Linked List/Double a Number Represented as a Linked List.cpp:234
MethoddoubleIt
Linked List/Double a Number Represented as a Linked List.cpp:29
MethoddoubleUtil
Linked List/Double a Number Represented as a Linked List.cpp:69
Methoddp
DP/Maximum_Length_of_Repeated_Subarray.cpp:38
Methoddrop
Design/Design Movie Rental System.cpp:66
MethodearliestAndLatest
Recursion/The Earliest and Latest Rounds Where Players Compete.cpp:15
FunctionearliestFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:124
MethodearliestFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:16
MethodearliestFullBloom
Greedy/Earliest Possible Day of Full Bloom.cpp:9
MethodearliestSecondToMarkIndices
Greedy/Earliest Second to Mark Indices I.cpp:50
Methodedit
Edit existing task priority
Design/Design Task Manager.cpp:36
MethodeditDistance
DP/Edit Distance.cpp:84
MethodeliminateMaximum
Greedy/Eliminate Maximum Number of Monsters.cpp:13
MethodequalPairs
HashMap/Equal Row and Column Pairs.cpp:10
MethodequalSubstring
Sliding Window/Get Equal Substrings Within Budget.cpp:14
← previousnext →1,201–1,300 of 3,557, ranked by callers