About the breaking of the mixture problem into subproblems

in the loop where we are breaking the bigger problem into subproblems the no. of partitions(k) should be 1 less than j (the end of mixture sequence for the current subproblem). why is the loop of k running from i to j?

hello
@Senjuti256 this is because in the main we are already passing n-1 instead of n that’s why we have to do it from i to j times.
if you feel that you still have doubt you can ask here:
Happy Learning !!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.