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

 

arrayOverlap


Given two integer arrays nums1 and nums2, return an array of the elements they have in common. Each element in the result must be unique and you may return the result in the order they appear in array1.


arrayOverlap([1, 2, 3], [3, 2]) → [2, 3]
arrayOverlap([1, 2, 3], [4, 3, 2, 2]) → [2, 3]
arrayOverlap([1, 2, 3], [4, 3, 2, 2]) → [2, 3]

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

public List<Integer> arrayOverlap(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

Copyright Nick Parlante 2017 - privacy