Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { 2 , 1 , 4 , 5 , 3 , 3 } ; int N = arr . length ; int K = 3 ; if ( isKPartitionPossible ( arr , N , K ) ) { System . out . print ( " Partitions ▁ into ▁ equal ▁ " ) ; System . out . print ( "sum is possible.NEW_LINE"); } else { System . out . print ( " Partitions ▁ into ▁ equal ▁ " ) ; System . out . print ( "sum is not possible.NEW_LINE"); } } }