You are viewing a single comment's thread. Return to all comments →
JAVA
** List s= new ArrayList<>();
for (int i = d ; ; ) { s.add(a.get(i)); i++; if (i==d) {break;} else if (i==a.size()) {i=0;} } return s;**
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays: Left Rotation
You are viewing a single comment's thread. Return to all comments →
JAVA
** List s= new ArrayList<>();