Skip to content

Misleading example for the Greedy Algorithms section #200

Open
@efeberkeevci

Description

@efeberkeevci

In the Greedy Algorithms section, coin change problem is provided as an example. This creates an impression that every coin change problem can be solved with greedy approach. This is incorrect since using greedy approach in some coin sets gives the incorrect result and needs to be solved with dynamic programming.

More info: https://stackoverflow.com/questions/13557979/why-does-the-greedy-coin-change-algorithm-not-work-for-some-coin-sets

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