techiedelight.com
All combinations of elements satisfying given constraints - Techie Delight
Given a positive number N, find all combinations of 2*N elements such that every element from 1 to N appears exactly twice and distance between its two...