about | help | code help+videos | done | prefs |
numMatch
Given arrays nums1 and nums2 of the same length, return the count of the number of times that two elements at the same index in each array are equal. numMatch([1, 2], [1, 1]) → 1 numMatch([5, 4, 3, 2, 1], [1, 2, 3, 4, 5]) → 1 numMatch([1, 2, 3, 4], [5, 6, 3, 4]) → 2 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy