Leetcode - / Combinations
77. Combinations[E]
https://leetcode.com/problems/combinations/
Description
Given two integers n and k, return all possible combinations of k numbers out of 1 … n.
Example:
1 | Input: n = 4, k = 2 |
Solution
1 | class Solution: |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment





