P
puzzlecracker
Say, I want to generate an array of N number of distinct pairs, order
of each element is irrelevant ({1.5} is the same as {5,1}). Pool of
elements of is K, meaning that elements will be from 1 to K. So
example is N 2, K=3,
function will return Pair[2], where pairs could be {1,3} {2,3} or
{1,2}{1,3}, etc... .
Thanks
of each element is irrelevant ({1.5} is the same as {5,1}). Pool of
elements of is K, meaning that elements will be from 1 to K. So
example is N 2, K=3,
function will return Pair[2], where pairs could be {1,3} {2,3} or
{1,2}{1,3}, etc... .
Thanks