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 all unique combinations of menu entries that cover every item in the desired order.
Minimize the total cost across these combinations while tolerating minor floating-point differences.
Return an empty list if the desired items cannot be fully covered.
What This Tests
Set cover optimization with exhaustive search
State-space pruning and memoization techniques
Combinatorial result tracking and deduplication
Floating-point tolerance handling
Common Patterns
DFS/BFS
Backtracking
Dynamic Programming
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Accepted
2.3k
/6k
Acceptance Rate
38.6%
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
menu =
userWants =
Output
Expected