id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

simona1@sfusd.edu arrays4 > numMatch
prev  |  next  |  chance

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)

public int numMatch(int[] nums1, int[] nums2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy