• + 0 comments

    You are probably missing the case where a swap can occur at two different indices. Check swap at 2, visit website for reference, and consider both adjacent values and values that are far apart.