Equal Sum Partition Problem
Medium

Problem Statement

Check if given set can be partitioned into two subsets such that sums of both subsets are equal.

Examples

1Example 1
Input:
{ "nums": [ 1, 5, 11, 5 ] }
Output:
true
2Example 2
Input:
{ "nums": [ 1, 2, 3, 5 ] }
Output:
false
3Example 3
Input:
{ "nums": [ 2, 2, 3, 5 ] }
Output:
false
Loading...

Sign in to Run Code and Submit