You are viewing a single comment's thread. Return to all comments →
Here is my solution in java
int length=a.size(); List<Integer> b=new ArrayList<>(); int i=0; int j=length-1; while(j>=0){ b.add(i, a.get(j)); i++; j--; } return b;
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
Here is my solution in java