← Questions

Median house price in each city

0
AirbnbCodingLast asked Sep 2026

A coding interview question asked in Airbnb's coding round, last asked Sep 2026. It tests python, sorting and data manipulation.

Given a table of house sales, return the median sale price in each city. Write it in PostgreSQL, and handle both odd and even numbers of sales per city and repeated prices.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Airbnb · Coding · Last asked Sep 202645 min · Live coding, one or two rounds, from the same pool as the screen

What it tests

python · sorting · data manipulation

Your code and the AI tutor open when you unlock this question.