Skip to content

Wrong result for certain input #10

@selmantayyar

Description

@selmantayyar

For the input below it gives 20, which is wrong. (Using Java, V2.0)

INPUT
21 5
1 3 7 8 11

output:

OUTPUT
3
0 3 4

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