EXPLAIN THE SOLUTION PLS
I CANT UNDERSTAND IT
Find all combinations that add upto given number
please help asap on this prob
hi
In this we are using recursion method
as in the find combination function there are 4 variable array,index,num,reducednum
so it is intutive the number in the array does not exceeds n
now u have to start with 1 as minimum
now to have increasing sequence pre varible is describe like that
also now if u get prev now taking a loop from prev to n and adding 1 element with gave u the desired reult
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.