Driver Code
arr = [ 2 , 1 , 4 , 5 , 3 , 3 ] NEW_LINE N = len ( arr ) NEW_LINE K = 3 NEW_LINE if ( isKPartitionPossible ( arr , N , K ) ) : NEW_LINE INDENT print ( " Partitions into equal sum is possible . " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Partitions into equal sum is not possible . " ) NEW_LINE DEDENT