Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gray Code holes #779

Open
jakobkordez opened this issue Nov 1, 2022 · 2 comments
Open

Add Gray Code holes #779

jakobkordez opened this issue Nov 1, 2022 · 2 comments
Labels
hole-idea An idea for a new hole. idea

Comments

@jakobkordez
Copy link
Contributor

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.

@JRaspass JRaspass added idea hole-idea An idea for a new hole. labels Nov 1, 2022
@hallvabo
Copy link

hallvabo commented Nov 3, 2022

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?

@MichalMarsalek
Copy link
Collaborator

This shall now be the issue for the Decoder, so that the two can be voted for independently.
Encoder: #1157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hole-idea An idea for a new hole. idea
Projects
None yet
Development

No branches or pull requests

4 participants