Cody

Problem 1488. Generate binary combinations for a given number of bit(s)

Created by Suman Saha in Community

Generate the binary combination as in the example below.

Example: If you are given:

 bin_comb(2)

The answer will be:

 0 0
 0 1
 1 0
 1 1

The answer will appear in double class.

Solution Stats

47.76% Correct | 52.24% Incorrect
Last solution submitted on Apr 13, 2019

Problem Comments

Solution Comments

Recent Solvers51

Suggested Problems

More from this Author22