#1

Highest Average Price Item

EASYHash TablePYTHON

Problem Description

You are analyzing grocery store sales data to identify the best-selling items by average price. Given a list of tuples representing daily sales records where each tuple contains `(date, item, price)`, with the first tuple being the header row, calculate the average price for each unique item across all dates and return the item with the highest average price. If there are ties, return any one of the tied items.

Topics

hash tablearrayaggregation

Asked at Companies

meta

Solve This Problem

Sign up to access the interactive code editor, run test cases, view the editorial, and get AI-powered feedback on your solution.

Start Solving →