can we use linear diophantine equation method to solve the first equation as w,d,p are given so x and y can be calculated
and then z=n-x-y
Can we use LDE?
i didnt get the explanation
shifting of solution…and also if possible can i get the lde implemenation and then u explain this on the basis of the implementation
@PoojaSingh22,
Explanation of algorithm is not on the basis of implementation, it is a fairly straightforward approach, using Diophantine equation, as you asked, but if you find it confusing, it isn’t worth spending time into, just stick to the editorial/bhaiya’s approach.
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.