Question DSA-GRDY-0072
HardFractional knapsack: capacity 50, items (value, weight) (60, 10), (100, 20), (120, 30). What is the maximum value?
- A.
160
- B.
220
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Greedy question
Fractional knapsack: capacity 50, items (value, weight) (60, 10), (100, 20), (120, 30). What is the maximum value?
160
220
Sign up free to see the answer and a step-by-step explanation.
240
180