| about | help | done | prefs | create account |
Java > Array-1 > rotateLeft3
prev | next | chance
| Given an array of ints length 3, return an array with the elements "rotated left" so {1, 2, 3} yields {2, 3, 1}.
rotateLeft3({1, 2, 3}) → {2, 3, 1} rotateLeft3({5, 11, 9}) → {11, 9, 5} rotateLeft3({7, 0, 0}) → {0, 0, 7} ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem 118.0
Copyright Nick Parlante 2006-10 - privacy