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 ) ) { Console . Write ( " Partitions ▁ into ▁ equal ▁ " ) ; Console . Write ( " sum ▁ is ▁ possible . STRNEWLINE " ) ; } else { Console . Write ( " Partitions ▁ into ▁ equal ▁ " ) ; Console . Write ( " sum ▁ is ▁ not ▁ possible . STRNEWLINE " ) ; } } }