You are viewing a single comment's thread. Return to all comments →
Has anyone confirmed that the 3rd sample case should be [1, 2, ..., 6, 7] and not [..., 6, 8]?
EDIT: confirmed that the problem statement is incorrect. The only constraint appears to be no duplicates.
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 →
Has anyone confirmed that the 3rd sample case should be [1, 2, ..., 6, 7] and not [..., 6, 8]?
EDIT: confirmed that the problem statement is incorrect. The only constraint appears to be no duplicates.