我想知道一种可能的算法来计算所有可能的组合,没有重复,从长度= 1开始直到长度= N个元素的N.
例:
要素:1,2,3.
输出:
1 2 3 12 13 23 123
combinations
combinations ×1