fill array with binary numbers
- by davit-datuashvili
hi, first of all this is not homework!!
my question is from book: Algorithms in C++ third edition by robert sedgewick
question is: there is given array of size n by 2^n(two dimensional) and we should fill it by binary numbers with bits size exactly n or
for example n=5 so result will be
00001
00010
00011
00100
00101
00110
00111
and so on we should put this sequence of bits into arrays please help me