L
Lee Garrington
Hey,
Is there an algorithm within the Standard C++ Library which performs the
following task :-
Given a set X and a parameter of size Y. Find all unique subsets of size Y
from the set X.
For example X = {1, 2, 3, 4} and Y = 2 would return
{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4}
Thx
Lee
Is there an algorithm within the Standard C++ Library which performs the
following task :-
Given a set X and a parameter of size Y. Find all unique subsets of size Y
from the set X.
For example X = {1, 2, 3, 4} and Y = 2 would return
{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4}
Thx
Lee