I have written the code but i am not getting how and where to use the modulo constraint.
Painters Problem
refer to this code
also there are many problems in ur code that is why u get wrong answer in some cases
- s= 0 is wrong it should be the biggest value of the input array
- use the t parameter just once while returning the answer
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.