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
dfs
Graph/Reconstruct Itinerary.cpp:75
Method
dfs
Graph/Evaluate Division.cpp:10
Method
dfs
Graph/Number of Islands.cpp:15
Method
dfs
Graph/Keys and Rooms.cpp:12
Method
dfs
Graph/Dijkstra'a Based Problems/Minimum Cost to Make at Least One Valid Path in a Grid.cpp:17
Method
dfs
Graph/BFS_DFS/Lexicographically Smallest String After Applying Operations.cpp:79
Method
dfs
Graph/BFS_DFS/Maximum Number of K-Divisible Components.cpp:17
Method
dfs
Graph/BFS_DFS/Longest Cycle in a Graph.cpp:12
Method
dfs
Graph/BFS_DFS/Most Stones Removed with Same Row or Column.cpp:17
Method
dfs
Graph/BFS_DFS/Find Closest Node to Given Two Nodes.cpp:73
Method
dfs
Graph/BFS_DFS/Count Unreachable Pairs of Nodes in an Undirected Graph.cpp:12
Method
dfs
Graph/BFS_DFS/Number of Provinces.cpp:12
Method
dfs
Graph/BFS_DFS/Max_Area_of_Island.cpp:15
Method
dfs
Graph/BFS_DFS/Minimize the Maximum Edge Weight of Graph.cpp:96
Method
dfs
Graph/BFS_DFS/Check if There is a Valid Path in a Grid.cpp:27
Method
dfs
Graph/BFS_DFS/Find All People With Secret.cpp:143
Method
dfs
Graph/BFS_DFS/Reorder Routes to Make All Paths Lead to the City Zero.cpp:11
Method
dfs
Graph/BFS_DFS/Making A Large Island.cpp:337
Method
dfs
O(c + n)
Graph/BFS_DFS/Power Grid Maintenance.cpp:18
Method
dfs
Graph/BFS_DFS/Maximize the Number of Target Nodes After Connecting Trees I.cpp:93
Method
dfs
Graph/BFS_DFS/Minimum Score of a Path Between Two Cities.cpp:13
Method
dfs
Graph/BFS_DFS/Maximum Candies You Can Get from Boxes.cpp:17
Method
dfs
Recursive DFS function to find the Eulerian path
Graph/Euler/Valid Arrangement of Pairs.cpp:85
Method
dfs
Graph/Disjoint Set/Maximum Number of Fish in a Grid.cpp:168
Method
dfs
Graph/Disjoint Set/Count the Number of Complete Components.cpp:15
Method
dfs
Graph/Topological Sorting/Course Schedule IV.cpp:16
Method
dfs
Graph/Topological Sorting/Build a Matrix With Conditions.cpp:47
Method
dfs
DP/Number of Increasing Paths in a Grid.cpp:32
Method
dfs
DP/Maximum Points After Collecting Coins From All Nodes.cpp:15
Method
dfs
DP/Maximum Profit from Trading Stocks with Discounts.cpp:120
Method
dfs
Arrays/Find All Groups of Farmland.cpp:20
Method
dfs
Arrays/Jump Game III.cpp:16
Method
dfs
Arrays/2-D Array/Maximum Number of Points From Grid Queries.cpp:72
Method
dfs
Arrays/2-D Array/Shortest Bridge.cpp:32
Method
dfs
Arrays/2-D Array/DFS/Number of Closed Islands.cpp:12
Method
dfs
Arrays/2-D Array/DFS/Number of Enclaves.cpp:12
Method
dfs
Arrays/2-D Array/DFS/Count Unguarded Cells in the Grid.cpp:94
Method
dfs
Arrays/2-D Array/DFS/Pacific Atlantic Water Flow.cpp:134
Method
dfs
Arrays/Binary Search/Last Day Where You Can Still Cross.cpp:15
Method
dfs
Tree/Count Good Nodes in Binary Tree.cpp:9
Method
dfs
Tree/Maximum Product of Splitted Binary Tree.cpp:64
Method
dfs
Tree/Longest ZigZag Path in a Binary Tree.cpp:12
Method
dfs
Tree/Check Completeness of a Binary Tree.cpp:51
Method
dfs
Tree/Find Elements in a Contaminated Binary Tree.cpp:16
Method
dfs
Tree/BST/Find Mode in Binary Search Tree.cpp:15
Method
dfs
Backtracking/The Number of Beautiful Subsets.cpp:17
Method
dfs
Backtracking/N-Queens_II.cpp:18
Method
dfs
Backtracking/Unique Paths III.cpp:14
Method
dfs
Bit_Magic/Maximum Length of a Concatenated String with Unique Characters.cpp:12
Method
dfs
Binary Lifting/Number of Ways to Assign Edge Weights II.cpp:23
Method
dfsBase
Graph/Sum of Distances in Tree.cpp:14
Method
dfsFill
Graph/Strongly Connected Components (Kosaraju's Algo).cpp:15
Method
dfsTraverse
Graph/Strongly Connected Components (Kosaraju's Algo).cpp:29
Method
diagWin
Design/Design Tic-Tac-Toe.cpp:97
Method
diagonalSort
Arrays/2-D Array/Sort the Matrix Diagonally.cpp:17
Method
diameter
Tree/Diameter of Binary Tree.cpp:14
Method
diameterOfBinaryTree
Tree/Diameter of Binary Tree.cpp:27
Method
diffWaysToCompute
Recursion/Different Ways to Add Parentheses.cpp:45
Method
differenceOfSums
Mathematical/Divisible and Non-divisible Sums Difference.cpp:16
Method
dijkstra
Function to find the shortest distance of all the vertices from the source vertex S.
Graph/Dijkstra’s Algorithm(set).cpp:15
Method
dijkstra
Function to find the shortest distance of all the vertices from the source vertex S.
Graph/Dijkstra’s Algorithm(Priority Queue).cpp:15
Method
dijkstra
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
Method
dijkstra
Graph/Dijkstra'a Based Problems/Shortest Distance After Road Addition Queries I.cpp:18
Method
dijkstra
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String I.cpp:13
Method
dijkstra
Graph/Dijkstra'a Based Problems/Minimum Cost to Convert String II.cpp:42
Method
dijkstra
Graph/Dijkstra'a Based Problems/Find Edges in Shortest Paths.cpp:17
Method
dijkstraAlgorithm
Graph/Dijkstra'a Based Problems/Modify Graph Edge Weights.cpp:107
Method
distance
Arrays/Cumulative_Sum(Prefix Array)/Sum of Distances.cpp:17
Method
distanceK
Tree/All Nodes Distance K in Binary Tree.cpp:67
Method
distanceLimitedPathsExist
Graph/Disjoint Set/Checking Existence of Edge Length Limited Paths.cpp:38
Method
distributeCandies
Mathematical/Distribute Candies Among Children II.cpp:15
Method
distributeCandy
Tree/Distribute Coins in Binary Tree.cpp:47
Method
distributeCoins
Tree/Distribute Coins in Binary Tree.cpp:29
Method
distributeCookies
Backtracking/Fair Distribution of Cookies.cpp:34
Function
divideArray
Arrays/Leetcode Easy/Divide Array Into Equal Pairs.cpp:147
Method
divideArray
Arrays/Leetcode Easy/Divide Array Into Equal Pairs.cpp:14
Method
divideArray
Arrays/Leetcode Easy/Divide Array Into Arrays With Max Difference.cpp:14
Method
divideConquer
Arrays/Maximum_Subarray.cpp:32
Function
dividePlayers
Arrays/Divide Players Into Teams of Equal Skill.cpp:133
Method
dividePlayers
Arrays/Divide Players Into Teams of Equal Skill.cpp:15
Method
divideString
strings/Easy Tagged/Divide a String Into Groups of Size k.cpp:14
Function
doesAliceWin
Mathematical/Leetcode Easy/Vowels Game in a String.cpp:65
Method
doesAliceWin
Mathematical/Leetcode Easy/Vowels Game in a String.cpp:15
Function
doesValidArrayExist
Bit_Magic/Neighboring Bitwise XOR.cpp:98
Method
doesValidArrayExist
Bit_Magic/Neighboring Bitwise XOR.cpp:14
Function
doubleIt
Linked List/Double a Number Represented as a Linked List.cpp:234
Method
doubleIt
Linked List/Double a Number Represented as a Linked List.cpp:29
Method
doubleUtil
Linked List/Double a Number Represented as a Linked List.cpp:69
Method
dp
DP/Maximum_Length_of_Repeated_Subarray.cpp:38
Method
drop
Design/Design Movie Rental System.cpp:66
Method
earliestAndLatest
Recursion/The Earliest and Latest Rounds Where Players Compete.cpp:15
Function
earliestFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:124
Method
earliestFinishTime
Arrays/Earliest Finish Time for Land and Water Rides I and II.cpp:16
Method
earliestFullBloom
Greedy/Earliest Possible Day of Full Bloom.cpp:9
Method
earliestSecondToMarkIndices
Greedy/Earliest Second to Mark Indices I.cpp:50
Method
edit
Edit existing task priority
Design/Design Task Manager.cpp:36
Method
editDistance
DP/Edit Distance.cpp:84
Method
eliminateMaximum
Greedy/Eliminate Maximum Number of Monsters.cpp:13
Method
equalPairs
HashMap/Equal Row and Column Pairs.cpp:10
Method
equalSubstring
Sliding Window/Get Equal Substrings Within Budget.cpp:14
← previous
next →
1,201–1,300 of 3,557, ranked by callers