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

 

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

array_mergeNoDupes -- This method takes two integer arrays and merges them into an array without any duplicates. Precondition: The arrays passed as arguments will be sorted; there is no guarantee the arrays will be the same size, there will not be duplicate values within arr1 or arr2.


array_mergeNoDupes([1, 2, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7]) → [1, 2, 3, 4, 5, 6, 7]
array_mergeNoDupes([], []) → []
array_mergeNoDupes([1, 2, 3], [4, 5, 6]) → [1, 2, 3, 4, 5, 6]

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

public int[] array_mergeNoDupes(int[] arr1, int[] arr2){ }

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