You are viewing a single comment's thread. Return to all comments →
if(d==arr.size()){ return arr; }else{ List<Integer> list1=new LinkedList<>(); List<Integer> list2=new LinkedList<>(); list1=arr.subList(0, d); list2=arr.subList(d, arr.size()); list2.addAll(list1); return list2; }
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 →
java