77. Combinations
2019-05-28
77. Combinations
Given two integers _n_ and _k_, return all possible combinations of _k_ numbers out of 1 … _n_.
Example:
1 | Input: n = 4, k = 2 |
Code:
1 | class Solution(object): |
2019-05-28
Given two integers _n_ and _k_, return all possible combinations of _k_ numbers out of 1 … _n_.
Example:
1 | Input: n = 4, k = 2 |
1 | class Solution(object): |