Skip to content

algorithm: Added Hamming Distance #83

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

Merged
merged 3 commits into from
Dec 15, 2022

Conversation

SpiderMath
Copy link
Contributor

This PR aims to add the implementation for measuring the hamming distance between two strings. The algorithms entry for Hamming distance.

@SpiderMath SpiderMath requested review from appgurueu and removed request for Panquesito7 and raklaptudirm December 15, 2022 08:20
@appgurueu
Copy link
Contributor

You could probably shorten this to a one-liner using reduce BTW.

@SpiderMath
Copy link
Contributor Author

You could probably shorten this to a one-liner using reduce BTW.

Probably so, yes, but I thought it would get complicated if I tried to write the code in that way, and this implementation just felt it would easier to comprehend (my opinion could be wrong)

@raklaptudirm raklaptudirm merged commit 6f3ea82 into TheAlgorithms:master Dec 15, 2022
@SpiderMath SpiderMath deleted the add-hamming-distance branch July 13, 2023 16:56
@SpiderMath SpiderMath restored the add-hamming-distance branch July 13, 2023 16:56
@SpiderMath SpiderMath deleted the add-hamming-distance branch July 13, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants