← Microsoft questions

Find new index of k-th element after right shifting an array n times

Filed under Microsoft

Given an array of size N, find the new index of the element originally at index k after the array has been right-shifted n times.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.