← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given a list of menu bundles with prices and the foods they contain, find the minimum cost to get all wanted foods.
Example: ` Bundles:
Output: $60 (buy fries+wings bundle) `
Requirements:
Approach: Use DP with bitmask where each bit represents whether a food item is obtained.
Follow-ups: