fill array with binary numbers
Posted
by davit-datuashvili
on Stack Overflow
See other posts from Stack Overflow
or by davit-datuashvili
Published on 2010-05-08T21:21:03Z
Indexed on
2010/05/08
21:28 UTC
Read the original article
Hit count: 137
algorithm
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
© Stack Overflow or respective owner