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

 

orion.a.smith@gmail.com apcsa-arrays > apcsaArraysJoinFirstLast
prev  |  next  |  chance

Given two arrays startNums and endNums with varying lengths, create and return a new array containing all the elements of startNums in order, followed by all the elements of endNums in order.


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

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

public int[] apcsaArraysJoinFirstLast(int[] startNums, int[] endNums) { }

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: 230

Copyright Nick Parlante 2017 - privacy