since i is possible to form then another number is sum - i so mindifference is sum - i - i
} return 0 ; } public static void main ( String [ ] args ) { int arr [ ] = { 1 , 6 , 11 , 5 } ; int n = arr . length ; System . out . print ( " The ▁ Minimum ▁ difference ▁ of ▁ 2 ▁ sets ▁ is ▁ " + minDifference ( arr , n ) + 'NEW_LINE'); } }