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

 

rmueller@lasacs.com javaarray > reverseBoth
prev  |  next  |  chance

Given a two arrays of integers return a single array which consists of the 1st array in reverse order followed by the 2nd array in reverse order.


reverseBoth([1, 2, 3], [7, 8, 9]) → [3, 2, 1, 9, 8, 7]
reverseBoth([3, 2, 1], [9, 8, 7]) → [1, 2, 3, 7, 8, 9]
reverseBoth([1, 2, 3, 4], [6, 7, 8, 9]) → [4, 3, 2, 1, 9, 8, 7, 6]

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

public int[] reverseBoth(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

Difficulty: 200

Copyright Nick Parlante 2017 - privacy