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

 

tmhscs@gmail.com sets > atLeastOnce
prev  |  next  |  chance

Return an ordered list of all elements appearing in either parameter list


atLeastOnce([1, 2, 3], [4, 5, 6]) → [1, 2, 3, 4, 5, 6]
atLeastOnce([1, 2, 3, 4], [3, 2, 1]) → [1, 2, 3, 4]
atLeastOnce([1, 5, 9, 33, 1, 5], [4, 5, 6, 7, 8, 9, 5]) → [1, 4, 5, 6, 7, 8, 9, 33]

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

public ArrayList<Integer> atLeastOnce(ArrayList<Integer> nums1, ArrayList<Integer> 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

Difficulty: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy