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

 

jebbert@volusia.k12.fl.us > poolCountMatches
prev  |  next  |  chance

Write a method that compares the elements in two different integer arrays for matches. A match is when you have the same value in the same position of each array. Note that the arrays might not be the same length.


poolCountMatches([5, 7, 2, 3], [5, 4, 1]) → 1
poolCountMatches([7, 9, 2, 5, 1, 3, 8], [7, 9, 2, 5, 1, 3, 8]) → 7
poolCountMatches([], []) → 0

...Save, Compile, Run (ctrl-enter)

public int poolCountMatches(int[] list1, int[] list2) { }

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

Difficulty: 290

Copyright Nick Parlante 2017 - privacy