← Questions

Justify articles to a fixed line width

0
AirbnbCodingLast asked Oct 2026

A coding interview question asked in Airbnb's technical phone screen, last asked Oct 2026. It tests strings, greedy and simulation.

Your platform shows articles in a fixed-width text column. Write a function that lays out a list of articles and returns every output line in order, as one flat list.

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

What it tests

strings · greedy · simulation

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