#175

Median Nightly Price per Market

MEDIUMAggregationPYTHON

Problem Description

You work on the pricing analytics team at a property rental platform. Given a stream of market pricing data from STDIN (each line containing a market name and nightly price separated by a comma), compute the median nightly price for each market and print results to STDOUT, preserving the order in which markets first appear.

Topics

dictionarymedianparsing

Asked at Companies

airbnb

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 →