Skip to content

Hardcoded Range in Initialize Function #1

Description

@fafraob

In line 30 in knapsack.py the range is hardcoded to be range(0,5). Does only work correctly for your instances with 5 items. Could be solved by using range(0, len(weights)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions