Skip to content

Partition Problem (CPP) #203

Description

@pranil-19

Partition problem is to determine whether a given set can be partitioned into two subsets such that the sum of elements in both subsets is the same.

EXAMPLE:
A[ ]= {1, 5, 11, 5}
Output: true (1)
The array can be partitioned as {1, 5, 5} and {11}

A[ ] = {1, 5, 3}
Output: false (0)
The array cannot be partitioned into equal sum sets.

// I wanna contribute this to DP folder , Please assign this to me

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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