Function to find the smallest subarray sum greater than or equal to target
static int smallSumSubset ( List < int > data , int target , int maxVal ) { int sum = 0 ; foreach ( int i in data ) sum += i ;