Averages are skewed by one huge or tiny order. For each country with at least 3 orders, drop its single smallest and single largest order (by total, ties by id) and average the rest. Return country, trimmed_mean (rounded to 2 decimal places) and orders_used, sorted by country.
Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.
Start 7-day free trial