Practice
/

Combinations

Combinations

Given two integers n and k, return all possible combinations of k numbers chosen from the range [1, n]. Return the answer in any order.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.