You are viewing a single comment's thread. Return to all comments →
if(d >= n) d = d/n; for(int i = 0; i < a.size(); ++i) { cout << a[d] << " "; ++d; if(d == a.size()) d = 0; }
if(d >= n) d = d/n;
for(int i = 0; i < a.size(); ++i) { cout << a[d] << " "; ++d; if(d == a.size()) d = 0; }
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 →