← Microsoft questions

Find K missing elements to achieve target mean

Filed under Microsoft

Given an array of integers from 1 to 6, determine K additional integer elements in the same range such that the overall average of the combined array equals F. Return the K elements, or an empty list…

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.