[PR #1295] [CLOSED] Hamming-Distance #2 #1895

Closed
opened 2026-01-29 15:25:54 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1295
Author: @BenSt099
Created: 8/15/2023
Status: Closed

Base: masterHead: master


📝 Commits (10+)

  • 63f8071 feat: add hamming-distance2
  • c11ed4c updating DIRECTORY.md
  • 0ed72a6 docs: add comments
  • 0be95f6 docs: add comments #2
  • a946026 chore: updated method signature
  • 08d8232 test: added test case for negative ints
  • 28b92be chore: changed ret-type
  • 578946b docs: updated docs of function
  • 050e456 Merge branch 'master' into master
  • 0ec3348 Merge branch 'master' into master

📊 Changes

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

View changed files

📝 DIRECTORY.md (+1 -0)
misc/hamming_distance2.c (+85 -0)

📄 Description

Description of Change

I know that there is already an implementation of the hamming-distance. My implementation operates on two Integer-arrays and it's more efficient than the normal 'for-loop'.

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/1295 **Author:** [@BenSt099](https://github.com/BenSt099) **Created:** 8/15/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`63f8071`](https://github.com/TheAlgorithms/C/commit/63f80712af376bd652f4ab3d75a50d074605bea0) feat: add hamming-distance2 - [`c11ed4c`](https://github.com/TheAlgorithms/C/commit/c11ed4c7ca147fb60abf87961f128241e6fee1c3) updating DIRECTORY.md - [`0ed72a6`](https://github.com/TheAlgorithms/C/commit/0ed72a64095fd1d750431bbbcf4537289b239973) docs: add comments - [`0be95f6`](https://github.com/TheAlgorithms/C/commit/0be95f61e47c2c6714c5abe2d52719aa5ec6e48a) docs: add comments #2 - [`a946026`](https://github.com/TheAlgorithms/C/commit/a94602697ae92d9a0bb1c9bb8714f274c20a8eae) chore: updated method signature - [`08d8232`](https://github.com/TheAlgorithms/C/commit/08d82320651d98ca0443be1b0b9d247e49f1d687) test: added test case for negative ints - [`28b92be`](https://github.com/TheAlgorithms/C/commit/28b92be979346e1daac015dfb725875de322c5f9) chore: changed ret-type - [`578946b`](https://github.com/TheAlgorithms/C/commit/578946bb6ca2f1d1b6d7a2e81a35ca49ea6d87d3) docs: updated docs of function - [`050e456`](https://github.com/TheAlgorithms/C/commit/050e456c5c2142bf8e9d9dd83e4415b6db4c1057) Merge branch 'master' into master - [`0ec3348`](https://github.com/TheAlgorithms/C/commit/0ec33483e04bfe687193d09a27d0126f8ee68a4b) Merge branch 'master' into master ### 📊 Changes **2 files changed** (+86 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) ➕ `misc/hamming_distance2.c` (+85 -0) </details> ### 📄 Description #### Description of Change I know that there is already an implementation of the hamming-distance. My implementation operates on two Integer-arrays and it's more efficient than the normal 'for-loop'. <!-- 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:25:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1895