← All problems
Medium · Backtracking

Combinations

Choose k distinct numbers from one through n in all possible ways.

Full problem and submission ↗
main.js

Console

Ready