hamming distance
All checks were successful
Test and Deploy / test (push) Successful in 12s
Test and Deploy / docs (push) Successful in 17s

This commit is contained in:
2024-05-04 11:35:54 -07:00
parent e622107f07
commit c81c8bfa3c
4 changed files with 35 additions and 0 deletions

View File

@ -89,3 +89,11 @@ responsible for freeing the returned array
```c
const unsigned char *repeating_key_xor_s(const char* s, const char* key);
```
### hamming_distance
Calculates the Hamming Distance (the number of differing bits) between two strings
```c
unsigned int hamming_distance(const char *a, const char *b);
```