Single swaps of an array – codegolf.stackexchange.com

Inspired by taken from a question at Stack Overflow. The challenge Given an integer n>1, output all arrays that can be obtained by swapping exactly two entries in the array [1, 2, ..., n]. The ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Single swaps of an array – codegolf.stackexchange.com"