Amazon | OnSite (virtual) | Symbols combinations
Anonymous User
783

/*
Given N symbols, find all possible unique combinations of K symbols from N. The order of the symbols in the tuples is irrelevant.
To make this a little more concrete consider the following:
symbols = A,B,C
If K=1, the results is A,B,C
if K=2, the result is AB, AC, BC
if k = 3, the result is,
A B C
A B D
A B E
A C D
A C E
A D E
B C D
B C E
B D E
C D E

Comments (5)