Thursday, July 4, 2019

Minimum swaps to make two arrays identical

Here is the graph algorithm's link on geeksforgeek.com.

Graph problem is tough for me to figure out. I spent 10 minutes to think about, but I could not figure out how to convert it to a graph problem.

Here is the post I read on Leetcode.com about this algorithm, which is one of onsite algorithms in Amazon, Seattle.



No comments:

Post a Comment