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

 

simona1@sfusd.edu arraylist1 > rotateLeft3List
prev  |  next  |  chance

Given an ArrayList of Integers with size 3, return an ArrayList with the elements "rotated left" so {1, 2, 3} yields {2, 3, 1}.


rotateLeft3List([1, 2, 3]) → [2, 3, 1]
rotateLeft3List([5, 11, 9]) → [11, 9, 5]
rotateLeft3List([7, 0, 0]) → [0, 0, 7]

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

public ArrayList<Integer> rotateLeft3List(ArrayList<Integer> 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

Copyright Nick Parlante 2017 - privacy