Skip to content

Latest commit

 

History

History

GrayCode

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Gray Code

We can use bitwise to solve this problem, the Gray Code of i = i ^ (i / 2) = i ^ (i >> 1)