What’s wrong in my code
Https://ide.codingblocks.com/s/459011
hello @nitinchoudhary260
a) dont sort the array , becuase painter can pick on contgous block, sorting will chnage the order
b) use long long to avoid overflow
c) u r asked to take modulo of ur answer but u r not taking
chck now->
Two test case still not working
check now->
the previous link was not updated
Thanks for the help regarding the issue. It is working now
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.