You are viewing a single comment's thread. Return to all comments →
Yes. But I think it will slower than
int *swp = new int[n]; memcpy(swp, (const void *)(arr + d), (n - d) * sizeof(int)); memcpy(swp + (n - d), (const void *)arr, d * sizeof(int));
Correct me if I am wrong.
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 →
Yes. But I think it will slower than
Correct me if I am wrong.