when we give cook prata that he has to make then we need to add the total time taken by cook till it becomes equal to current mid i am unable to implement that part can you help me out solving this?
Code implementation problem
check out this code
i have checked your code why you have taken e=10000007
u can take INT_MAX as well