Same code after giving t test cases , gives wrong answer on spoj ..why?
it should be submitted there also
but here it is submitted 100% correct…
@Muskan-Gupta-598128740703036
Your code is fine
Just one issue
maxTime was incorrect
MaxTime is if you give all paratas to make to last chef
Try setting maxTime to (1<<25) ( Random large value maybe larger than possible large but works )
Please close the doubt
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.