Spy lost software for ixl

 

Spy lost software for ixl

Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0.