← Flipkart questions
CodingReported in a candidate post, Aug 2025

Sort a K-distance (nearly sorted) array

Filed under Flipkart

Sort an array in which every element is at most K positions away from its place in the sorted order, doing better than a plain O(n log n) sort.

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.