You are viewing a single comment's thread. Return to all comments →
Mi solucion Java:
class Result { public static List<Integer> rotateLeft(int d, List<Integer> arr) { for(int i = 0; i < d; i++){ arr.add(arr.remove(0)); } return arr; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →
Mi solucion Java: