gray codes for $n = 4 $.
Attempt : The codes for $n = 4 $ :
$0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111$
$0000, 0001, 0011, 0010, 0110, 0111, 0101, 0100, 1100, 1101, 1111, 1110, 1010, 1011, 1001, 1000$
Is the answer true for my question ? Anyone can give me an example about codes, i am still not clear about it.