I was practising C. k-Tree. I want to solve it by finding the difference between f(n,k) and f(n,d-1) where f will return the number of ways to break n into a sum of integers from 1 to k.
Can someone please link the resources for an iterative solution or explain it?
Thank you!