1
Name:
Anonymous
2010-09-08 4:41
PHP has a function that does it. How would I implement it? Considering string shifting and single character differences, that's a lot of cases to go through.
4
Name:
Anonymous
2010-09-08 11:45
>>3
I didn't notice so I was going to actually
HELP HIM!!! .
5
Name:
Anonymous
2010-09-08 12:34
>>2
This does not handle a single-character shift well.
7
Name:
Anonymous
2010-09-08 14:02
Some people, when confronted with a problem like "Compute the similarity of two strings" will think: Hey, I know, I'll just ask /prog/ !
Now they have three problems.
10
Name:
Anonymous
2010-09-08 17:30
>>9
It's C with a scripting language's type flexibility.
11
Name:
Anonymous
2010-09-08 17:42
function similarity($a, $b) {
$similarity = 0;
for ($i=0; i < strlen($a); $i++) {
if ($a[$i] == $b[$i])
similarity++;
else
similarity--;
}
return $similiarity / strlen($a);
}
14
Name:
Anonymous
2010-09-09 1:51
>>13
'>nigger cant into African American?
15
Name:
Anonymous
2010-09-09 5:11
>>14
then he should have went to college
Terrible! back to /b/ please
18
Name:
Anonymous
2010-09-09 12:30
>>17
Yeah, everybody knows it's ``should of''.