We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Graph Theory
- Matrix
- Discussions
Matrix
Matrix
Sort by
recency
|
101 Discussions
|
Please Login in order to post a comment
We can solve using kruskal's approach + union-find (disjoint set). Whenever we are trying to add edge which leads to any of the machines we need to skip adding that edge and consider it in the answer.
class Result {
}
Here is my solution in java, javascript, python, c, C++, CSharp HackerRank Matrix Problem Solution
Here is the solution of Matrix Click Here
https://medium.com/p/a75c2d0e0080