Skip to content

Wrong Logic #1

@Abhishekpratapsingh

Description

@Abhishekpratapsingh

Test your solution on this input
5 6
1 2 1
1 3 1
1 4 1
5 2 1
5 3 1
5 4 1
0 0

Answer should be 6 (with all edges included), but your algorithm would rule out that possibility as in that case degree of node 1 (and node 5) is odd .

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