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

 

tmhscs@gmail.com arrays > array_countDupes
prev  |  next  |  chance

array_countDupes - given two int arrays return the number of duplicate values found between the two arrays. Precondition: Assume no duplicates in each individual array.


array_countDupes([], []) → 0
array_countDupes([1, 2, 3, 4, 5], [1, 2, 3, 5]) → 4
array_countDupes([], [1, 3]) → 0

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

public int array_countDupes(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