Similar to this question but items don't have value $v$.
Max weight $W$, every item has weight $w$, must add exactly $L$ items to the knapsack, need to get max weight as possible.
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communitySimilar to this question but items don't have value $v$.
Max weight $W$, every item has weight $w$, must add exactly $L$ items to the knapsack, need to get max weight as possible.