Given two arrays of strings, return the number of times each string of the second array appears in the first array.
Example array1 = ['abc', 'abc', 'xyz', 'cde', 'uvw'] array2 = ['abc', 'cde', 'uap'] How many times do the elements in array2 appear in array1?
'abc' appears twice in the first array (2) 'cde' appears only once (1) 'uap' does not appear in the first array (0) Therefore, solve(array1, array2) = [2, 1, 0]
- Fork and clone this repo
- Create a new branch called solutions
- Checkout solutions branch
- Push to your fork
- Issue a pull request
- Your pull request description should contain the following:
- (1 to 5 no 3) I completed the challenges
- (1 to 5 no 3) I feel good about my code
- Anything specific on which you want feedback!
#Example:
I completed the challenge: 5
I feel good about my code: 4
I'm not sure if my constructors are setup cleanly...