You are viewing a single comment's thread. Return to all comments →
Just for grins, copy-pasted this solution and it throws an exception....
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7 at Solution.minimumSwaps(Solution.java:17) at Solution.main(Solution.java:48)
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Swaps 2
You are viewing a single comment's thread. Return to all comments →
Just for grins, copy-pasted this solution and it throws an exception....
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7 at Solution.minimumSwaps(Solution.java:17) at Solution.main(Solution.java:48)