Calling for after choosing the current index value
v . append ( arr [ n - 1 ] ) NEW_LINE y = printAllSubsetsRec ( arr , n , v , Sum - arr [ n - 1 ] ) NEW_LINE v . pop ( len ( v ) - 1 ) NEW_LINE return min ( x , y ) NEW_LINE