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

 

reverseArray


Given an int array, return a new array that reverses the order of the elements in the original array. For example, {1, 2, 3, 4, 5} -> {5, 4, 3, 2, 1} (Difficulty Level: 4)


reverseArray([1, 2, 3, 4, 5]) → [5, 4, 3, 2, 1]
reverseArray([100, 86, 54, 21]) → [21, 54, 86, 100]
reverseArray([3, 4, 8]) → [8, 4, 3]

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

public int[] reverseArray(int[] array){ }

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

Copyright Nick Parlante 2017 - privacy