You are viewing a single comment's thread. Return to all comments →
c++ int i=0; while(i<d){ int temp=arr[0]; arr.erase(arr.begin()); arr.push_back(temp); i++;}
int i=0; while(i<d){ int temp=arr[0]; arr.erase(arr.begin()); arr.push_back(temp); i++;}
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 →
c++
int i=0; while(i<d){ int temp=arr[0]; arr.erase(arr.begin()); arr.push_back(temp); i++;}