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

 

srp4379@lausd.net quiz2 > reverse
prev  |  next  |  chance

public int[] reverse(int[] nums). Given an array of integers, return an array with the elements in reverse order.


reverse([1, 2, 3, 4, 5]) → [5, 4, 3, 2, 1]
reverse([2, 4, 6, 8]) → [8, 6, 4, 2]
reverse([10, 9, 8, 7, 6]) → [6, 7, 8, 9, 10]

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

public int[] reverse(int[] nums) { }

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

Copyright Nick Parlante 2017 - privacy