Python Playground - Find all combinations of k-bit numbers with n bits set where 1 <= n <= k in sorted order : Online Interpreter, Compiler & Editor | Sololearn

Find all combinations of k-bit numbers with n bits set where 1 <= n <= k in sorted order

+3