...

/

Challenge: Fractional Knapsack

Challenge: Fractional Knapsack

Given weights and values of “n” items, put the items in a knapsack with a capacity of W.

Problem Statement

You are given the capacity of a knapsack WW and a list of ​”​​n​”​”​​n​”​​ items that each have a certain value. Fractions of each item can be placed in the knapsack. Your goal is to ...