Combinations LeetCode solution in Python

1
class Solution:
2
def combine(self, n: int, k: int) -> List[List[int]]:
3
return itertools.combinations(range(1, n + 1), k)

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0