[PR #1200] [MERGED] feat: add hamming distance #1788

Open
opened 2026-01-29 15:24:41 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1200
Author: @aybarsnazlica
Created: 1/23/2023
Status: Merged
Merged: 1/31/2023
Merged by: @Panquesito7

Base: masterHead: hamming


📝 Commits (10+)

  • 3d354e9 feat: add hamming distance
  • b5ba50a Update misc/hamming_distance.c
  • f51020d Update misc/hamming_distance.c
  • e310f17 Merge branch 'master' into hamming
  • 20299fe updating DIRECTORY.md
  • 0817c88 Add curly braces to the while loop
  • 57d5231 Fix character comparison
  • 446274d Add a one-line description for library/header
  • 28b1dbb Update misc/hamming_distance.c
  • 50e284d Fix function names in test

📊 Changes

2 files changed (+65 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+3 -0)
misc/hamming_distance.c (+62 -0)

📄 Description

Description of Change

Add an algorithm to calculate the Hamming distance between two strings.

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/1200 **Author:** [@aybarsnazlica](https://github.com/aybarsnazlica) **Created:** 1/23/2023 **Status:** ✅ Merged **Merged:** 1/31/2023 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `hamming` --- ### 📝 Commits (10+) - [`3d354e9`](https://github.com/TheAlgorithms/C/commit/3d354e977eb17a9434d45a274b39c397fea78b19) feat: add hamming distance - [`b5ba50a`](https://github.com/TheAlgorithms/C/commit/b5ba50a27cc14a7ed861fd0bdfcfc20a6d3ccb23) Update misc/hamming_distance.c - [`f51020d`](https://github.com/TheAlgorithms/C/commit/f51020d60804eb41665e12af950164326cbdb970) Update misc/hamming_distance.c - [`e310f17`](https://github.com/TheAlgorithms/C/commit/e310f17dbda2fb3b5d4a0c29314b7d8ad8a4a1b2) Merge branch 'master' into hamming - [`20299fe`](https://github.com/TheAlgorithms/C/commit/20299fec3978f004b298e64a28840d4a20fc298f) updating DIRECTORY.md - [`0817c88`](https://github.com/TheAlgorithms/C/commit/0817c88933b04aff0b395be10bdab92206faa024) Add curly braces to the while loop - [`57d5231`](https://github.com/TheAlgorithms/C/commit/57d5231c3b2fee64f60e80f372034cd32fe4369a) Fix character comparison - [`446274d`](https://github.com/TheAlgorithms/C/commit/446274d540d49d54734c6c8a5b692fd0a8d6e2b2) Add a one-line description for library/header - [`28b1dbb`](https://github.com/TheAlgorithms/C/commit/28b1dbbc8fb8e03050924150acf1dbab96f4a50d) Update misc/hamming_distance.c - [`50e284d`](https://github.com/TheAlgorithms/C/commit/50e284dc5fc4b5862e3286e65daa6c783f8ee07d) Fix function names in test ### 📊 Changes **2 files changed** (+65 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+3 -0) ➕ `misc/hamming_distance.c` (+62 -0) </details> ### 📄 Description #### Description of Change Add an algorithm to calculate the Hamming distance between two strings. <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:24:41 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1788