[PR #1364] [CLOSED] Add: Exercism C hamming challenge is added #1967

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

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1364
Author: @Zumh
Created: 10/30/2023
Status: Closed

Base: masterHead: exercism


📝 Commits (6)

  • c46ed55 hamming is done
  • d863442 hamming is added
  • a690886 hamming a.out is remove
  • 419abd5 fix: add hamming title in README
  • 8004fc5 docs: add the program description inside hamming.c file
  • 74b1f15 fix: remove the main function for testing

📊 Changes

3 files changed (+44 additions, -1 deletions)

View changed files

📝 exercism/README.md (+1 -1)
exercism/hamming/hamming.c (+36 -0)
exercism/hamming/hamming.h (+7 -0)

📄 Description

Description of Change

This pull request introduces a C program that calculates the Hamming distance between two strings. The Hamming distance is a measure of the difference between two strings of equal length. This algorithm calculates the number of differing characters between two input strings, which can be useful for various applications, including error detection and correction.

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and examples (if applicable, tests should be added to validate the correctness of the code)
  • 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 pull request contains a C program that calculates the Hamming distance between two input strings. The computer function performs the comparison and returns the number of differing characters. The code includes comments for clarity, and further testing and documentation may be needed to ensure its correctness and usability.

Please review this pull request and provide feedback or merge it into the repository if it aligns with the project's goals.


🔄 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/1364 **Author:** [@Zumh](https://github.com/Zumh) **Created:** 10/30/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `exercism` --- ### 📝 Commits (6) - [`c46ed55`](https://github.com/TheAlgorithms/C/commit/c46ed55bb9b004df1bf53faee2404e293e21bc12) hamming is done - [`d863442`](https://github.com/TheAlgorithms/C/commit/d8634425064f1af7fa02dc2f35ecb892183e14b0) hamming is added - [`a690886`](https://github.com/TheAlgorithms/C/commit/a6908862625fefb6c097b2bb5caa5a23e3763796) hamming a.out is remove - [`419abd5`](https://github.com/TheAlgorithms/C/commit/419abd5764afe5f68da1a03a9e35afb8edd0b996) fix: add hamming title in README - [`8004fc5`](https://github.com/TheAlgorithms/C/commit/8004fc5cef4f759910b5c94530d61a020bc9a3bd) docs: add the program description inside hamming.c file - [`74b1f15`](https://github.com/TheAlgorithms/C/commit/74b1f158f1a5d3216eeb4cb5d762af722acb1bac) fix: remove the main function for testing ### 📊 Changes **3 files changed** (+44 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `exercism/README.md` (+1 -1) ➕ `exercism/hamming/hamming.c` (+36 -0) ➕ `exercism/hamming/hamming.h` (+7 -0) </details> ### 📄 Description #### Description of Change This pull request introduces a C program that calculates the Hamming distance between two strings. The Hamming distance is a measure of the difference between two strings of equal length. This algorithm calculates the number of differing characters between two input strings, which can be useful for various applications, including error detection and correction. #### Checklist - [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 examples (if applicable, tests should be added to validate the correctness of the code) - [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 This pull request contains a C program that calculates the Hamming distance between two input strings. The `computer` function performs the comparison and returns the number of differing characters. The code includes comments for clarity, and further testing and documentation may be needed to ensure its correctness and usability. Please review this pull request and provide feedback or merge it into the repository if it aligns with the project's goals. --- <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:26:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1967