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

 

jebbert@volusia.k12.fl.us > reverseIt
prev  |  next  |  chance

This one is not too hard! Just reverse the numbers in the input array of integers!


reverseIt([4, 6, 8, 12]) → [12, 8, 6, 4]
reverseIt([3, 6]) → [6, 3]
reverseIt([5, 6, 7, 1, 2, 3]) → [3, 2, 1, 7, 6, 5]

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

public int[] reverseIt(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: 440

Copyright Nick Parlante 2017 - privacy