Convert a binary-reflected Gray code integer back to its standard binary representation.
Constraints
Example
>>> gray_decode(0) 0 >>> gray_decode(1) 1 >>> gray_decode(2) 3 >>> gray_decode(7) 5 >>> gray_decode(15) 10
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints