You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The encoder is too trivial. Maybe more interesting if encoder/decoder is merged into one hole, and direction decided by whether the input number is in binary or decimal?
Gray code decoder:
For each argument in reflected binary (Gray code) form, print the same number in decimal form.
Gray code encoder:
For each numeric argument in decimal form, print the same number in reflected binary (Gray code) form.
The numbers range from 0 to 4096 inclusive.
The text was updated successfully, but these errors were encountered: