← Flipkart questions

Minimum modifications to restore array order

Filed under Flipkart

Given an array of characters and a corresponding array of target indices, repeatedly apply index-based permutation until the original order of the array is restored. Find the minimum number of…

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 Flipkart questions

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