Minimum Canisters to Top Up an Exact Target

Quick Overview

This question evaluates a candidate's grasp of dynamic programming, specifically the unbounded knapsack (coin change) pattern for finding the minimum number of items from an unlimited supply that sum to an exact target. It tests the ability to define subproblems, handle infeasible cases, and reconstruct an optimal combination, making it a common way to assess algorithmic problem-solving in coding interviews.

Minimum Canisters to Top Up an Exact Target

Company: Airbnb

Role: Machine Learning Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Quick Answer: This question evaluates a candidate's grasp of dynamic programming, specifically the unbounded knapsack (coin change) pattern for finding the minimum number of items from an unlimited supply that sum to an exact target. It tests the ability to define subproblems, handle infeasible cases, and reconstruct an optimal combination, making it a common way to assess algorithmic problem-solving in coding interviews.

|Home/Coding & Algorithms/Airbnb
Airbnb logo
Airbnb
Jun 22, 2026, 12:00 AM
mediumMachine Learning EngineerTechnical ScreenCoding & Algorithms
1
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...