Airbnb SDE Off-Campus OA | Minimum Bottles to Fulfill the Order
Question · Posted Jun 2026
Problem 1 - Minimum Bottles to Fulfill the Order Problem Statement A nutrition center delivers milk in fixed-size bottles. The available bottle sizes are: 1, 5, 7, and 10 liters You have an unlimited supply of each bottle size. Given a customer demand of D liters, find the minimum number of bottles required to fulfill exactly that demand. If it is impossible to fulfill the demand exactly, return -1. Input Format Line 1: A single integer D representing the required ...
The full answer & interview discussion are available to premium members.
Log in Create a free account