Different ways to represent N as sum of K non-zero integers
Given N and K. The task is to find out how many different ways there are to represent N as the sum of K non-zero integers. Examples: Input: N = 5, K = 3 Output: 6 The possible combinations of integers are: ( 1, 1, 3 ) ( 1, 3, 1 ) ( 3, 1, 1 ) ( 1, 2, 2 ) ( 2, 2, 1 ) ( 2, 1, 2 ) Input: N = 10, K = 4 O