← Oracle questions
CodingReported in a candidate post, Sep 2020

Sort an almost sorted array and find the smallest number occurring k times

Filed under Oracle

Given an array where each element is at most k positions away from its target sorted position, sort the array. Additionally, find the smallest number that appears at least k times in the array.

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

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