We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
intmain(){/* Enter your code here. Read input from STDIN. Print output to STDOUT */inti,d,k,n,temp,j;cin>>n;inta[n];for(i=0;i<n;i++)cin>>a[i];cin>>d;for(i=0;i<n;i++)cout<<" "<<a[(i+(n-d))%n];return0;}
Left Rotation
You are viewing a single comment's thread. Return to all comments →
pls let me knw wats wrng in this?