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
Now that you asked, I think that yes the objects are consistent, but one situation where you could have inconsistent structure is if you're using MongoDB, so the objects could have different properties.
This is an excerpt of the array. Not sure if any of theses properties would considered to be unique
.
{"events": [
{"date": "-300", "description": "Pilgrims travel to the healing temples of Asclepieion to be cured of their ills. After a ritual purification the followers bring offerings or sacrifices.", "lang": "en", "category1": "By place", "category2": "Greece", "granularity": "year"},
{"date": "-300", "description": "Pyrrhus, the King of Epirus, is taken as a hostage to Egypt after the Battle of Ipsus and makes a diplomatic marriage with the princess Antigone, daughter of Ptolemy and Berenice.", "lang": "en", "category1": "By place", "category2": "Egypt", "granularity": "year"}, ]}
Visible, non-interactive elements with click handlers must have at least one keyboard listener.eslint(jsx-a11y/click-events-have-key-events)
Non-interactive elements should not be assigned mouse or keyboard event listeners.eslint(jsx-a11y/no-noninteractive-element-interactions)
<tbody onClick={score}>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
// ... other rows