Please Help me with painters partition problem . My custom output is correct but test cases are not passing

https://online.codingblocks.com/app/player/161395/content/158307/5385/code-challenge

Please correct the code and comment my mistakes

i have done some changes
you have to multiply with time at end and then take mode also

Modified Code

Still Not working for some test cases only 2 out of 6 test cases are passed

https://ide.codingblocks.com/s/362151 pls help it is outputing correct but test cases not passing. The corrected code of your only passed 2 of 6 test cases

Hey @yashratnani6
Mentioned the changes in comments : https://ide.codingblocks.com/s/362164 :slight_smile:

We sent 1 instead of t and multiplied it at last to avoid overflow

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.