Problem
3-Partition Problem
Partition a set of integers into three subsets with equal sums.
Input: A sequence of integers , ,…, .
Output: Check whether it is possible to partition them into three subsets with equal sums, i.e., check whether there exist three disjoint sets , , ⊆ {} such that = {} and
= =
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.