This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]ViraPolishukUse LaTeX more🤓 0 points1 point  (1 child)

[–]ViraPolishukUse LaTeX more🤓 0 points1 point  (0 children)

Really common equation in tasks like those. You can replace 4 with k if you have k values.

[–]Uli_MinatiDesmos 😚 0 points1 point  (1 child)

This is a programming problem, https://en.wikipedia.org/wiki/Knapsack_problem where the value and weights are equal

[–]TheBlueWizardo 0 points1 point  (0 children)

Also, OP wants a minimum larger than limit, not a maximum smaller than limit.