这是Combinations 组合项 的延伸,在这里,我们允许不同的顺序出现,那么新的题目要求如下: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solution is: [ [1,2], [1,3], [1,4], [2,1], [2,3], [2,4], [3,1], [3,2], [3,4…