Dsa
Math
Medium
Sum of Subset Averages
Given an array of integers, compute the average of the integers in all possible non-empty subsets of the array. Return the sum of these averages, rounded to 2 decimal places. The input will be a single line of integers separated by spaces.
Example:
Input:
1 2 3
Output:
6.00
Key concepts
matharrayaverage
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now