New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Airbnb
Coding Question
AI Insights
Quick Summary
Find the minimum number of reusable experience durations that sum exactly to a target layover time.
Return 0 if the exact duration cannot be achieved with the given options.
Inputs contain decimals with at most one decimal place.
What This Tests
Unbounded knapsack dynamic programming
Floating-point precision handling
DP state definition and transitions for minimization
Complexity analysis for nested iteration
Common Patterns
Dynamic Programming
Unbounded Knapsack
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected