|
@@ -1,12 +0,0 @@
|
1
|
|
-
|
2
|
|
-/**
|
3
|
|
- * Finish the class RotateList make it subclasse the built-in List class. (Hint extends ?????)
|
4
|
|
- * Write a function that rotates a list by k elements.
|
5
|
|
- * For example [1,2,3,4,5,6] rotated by 2 becomes [3,4,5,6,1,2].
|
6
|
|
- * The first 2 elements where rotated to the back of the List.
|
7
|
|
- * If it was rotated by 3 [1,2,3,4,5,6] rotated becomes [4,5,6,1,2,3].
|
8
|
|
- * Try solving this without creating a copy of the list.
|
9
|
|
- * How many swap or move operations do you need?
|
10
|
|
- */
|
11
|
|
-public class RotateList{
|
12
|
|
-}
|