We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
We can use bitwise to solve this problem, the Gray Code of i = i ^ (i / 2) = i ^ (i >> 1)