• + 0 comments

    Here is my Java solution:

        public static List<Integer> rotateLeft(int d, List<Integer> arr) {
        // Write your code here
            List<Integer> subList = arr.subList(d, arr.size());
            subList.addAll(arr.subList(0, d));
            return subList;
        }