Combinations #381
Labels
enhancement
New feature or request
hacktoberfest-accepted
Hacktoberfest!
help wanted
Extra attention is needed
You are given an array with random integers. Design an algorithm that returns a list of arrays with all the possible combinations of the numbers in the array.
This means if the input is [1,2,3], the output will be [[1],[2],[3],[12],[13],[23],[123]].
Some solutions might be faster than others but speed does not matter.
The text was updated successfully, but these errors were encountered: