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

 

srp4379@lausd.net > slideRight4
prev  |  next  |  chance

int[] slideRight4(int[] nums). Given an array of ints with 4 elements, return an array with the elements "slid right" so {1, 2, 3, 4} yields {4, 1, 2, 3}.


slideRight4([1, 2, 3, 4]) → [4, 1, 2, 3]
slideRight4([57, 21, 12, 68]) → [68, 57, 21, 12]
slideRight4([8, 7, 6, 5]) → [5, 8, 7, 6]

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

int[] slideRight4(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: 100

Copyright Nick Parlante 2017 - privacy