Driver code
static public void Main ( ) { int [ ] arr = { 2 , 1 , 4 , 5 , 3 , 3 } ; int N = arr . Length ; int K = 3 ; if ( isKPartitionPossible ( arr , N , K ) ) Console . WriteLine ( " Partitions ▁ into ▁ equal ▁ sum ▁ is ▁ possible . " ) ; else Console . WriteLine ( " Partitions ▁ into ▁ equal ▁ sum ▁ is ▁ not ▁ possible . " ) ; } }