Problem 45205. Gray code
Given a decimal number, convert it to its corresponding Gray code (see https://en.wikipedia.org/wiki/Gray_code).
8 -- 1100 4 -- 110 17 -- 11001
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers16
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1928 Solvers
-
1301 Solvers
-
495 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1192 Solvers
-
1174 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!