Minimize difference between sum of two K-length subsets
Given an array arr[] consisting of N positive integers and a positive integer K, the task is to find the minimum difference between the sum of elements present in two subsets of size K, such that each array element can occur in at most 1 subset. Examples: Input: arr[] = {12, 3, 5, 6, 7, 17}, K = 2Ou