Horje
hamming c++ Code Example
hamming c++
int hamming(string a, string b) {
	int d = 0;
	for (int i = 0; i < k; i++) {
		if (a[i] != b[i]) d++;
	}
	return d;//hamming distance between 2 strings a and b
}




Cpp

Related
error C2011 Code Example error C2011 Code Example
why constructor can't be static in c++ Code Example why constructor can't be static in c++ Code Example
c++ vector declaration Code Example c++ vector declaration Code Example
c++ rand Code Example c++ rand Code Example
c++ switch integer Code Example c++ switch integer Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7