Skip to content

Conversation

@Craniace
Copy link

Describe your change:

Added a new algorithm for Binary to Excess-3 Code Conversion in the digital_logic directory.
The algorithm converts a binary input (as a string) into its 4-bit Excess-3 representation.
This is useful in digital electronics for encoding decimal digits into self-complementary binary codes.

  • Add an algorithm

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, separate PRs will be opened for other algorithms if needed.
  • All new Python files are placed inside an existing directory (e.g., digital_logic/).
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All function and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • The new algorithm includes at least one URL that points to Wikipedia or another similar explanation.

Reference:
Excess-3 Code - Wikipedia

@algorithms-keeper algorithms-keeper bot added the awaiting reviews This PR is ready to be reviewed label Oct 31, 2025
This was referenced Oct 31, 2025
@Craniace Craniace changed the title Create bianry_to_excessthree.py Created bianry_to_excessthree.py Nov 1, 2025
Craniace

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant