You are viewing a single comment's thread. Return to all comments →
Perhaps this one is any good:-
vector<int>temp; for(int i=d;i<arr.size();i++){ temp.push_back(arr[i]); } for(int i=0;i<d;i++){ temp.push_back(arr[i]); } return temp;
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 →
Perhaps this one is any good:-