ljharb on master
[eslint config] [base] [patch] … [eslint config] [patch] extend … Merge pull request #1996 from r… (compare)
ljharb on master
[editorial] [react] fix typo [eslint config] [*] [deps] upda… (compare)
can any one help this one
Write a program that takes two strings as input and outputs two numbers, n1 and n2.
The output values indicate a degree of matching between the two strings:
n1 : number of letters in one string that each match in value and
in position to a letter in the other string.
n2 : number of letters in one string that each match in value,
but not in position to a letter in the other string.
Some notes:
Some examples (str1, str2 -> n1,n2):
"abc", "abc" -> 3,0
"bca", "abc" -> 0,3
"aab", "abb" -> 2,0
"aab", "aba" -> 1,2
"abc", "aaa" -> 1,0