Knapsack problem/Unbounded: Difference between revisions

Content deleted Content added
Line 472: Line 472:
=={{header|Python}}==
=={{header|Python}}==
===Simple Basic Solution===
===Simple Basic Solution===
This version is easy to understand and gets the job done, not over-generalizing. It's often the first kind of solution to try, and often good enough to keep. If follows the KISS principle, and doesn't use Python features just because they are available. It doesn't even need many comments.
This version is easy to understand and gets the job done, not over-generalizing. It's often the first kind of solution to try, and often good enough to keep. It follows the KISS principle, and doesn't use Python features just because they are available. It doesn't even need many comments.
<python>
<python>
class Bounty:
class Bounty: