Property Combination for Group Size

Asked at Airbnb · Coding Questions · Difficulty: Medium · Last asked May 25, 2026

Given properties (each with a capacity) in a neighborhood and a target group size, find the combination that fits the group while minimizing total capacity, breaking ties by fewest properties. A long-standing Airbnb onsite coding problem.

Loading the problem…