← Amazon questions
CodingMedium

Subsets with average equal to k

Filed under Amazon

Given an array of integers, find the number of non-empty subsets whose average equals a target value k. An average of a subset equals k if the sum of elements equals k * number of elements.

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

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