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

 

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

Given two integer arrays "a" and "b", return a new array that contains both of their contents where elements from "a" are at the beginning and elements from "b" are at the end.


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

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

public int[] array_combine(int[] a, int[] b) { }

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