Skip to content

map in Solution is useless #4

@gpl27

Description

@gpl27

It brings a huge overhead when adding and removing ingredients but it is only used when verifying a solution.
Since validate_solution isn't used in any part of the algorithm, change it so it creates the map on demand.

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