Prata problem doubt clearing


i made the code on the basis of the sir explains in the lecture i think i almost got it a very small mistake is there but doesnot find out pls solve this and tell me where i am wrong

Hi @dipeshgupta197
u can refer my code https://ide.codingblocks.com/s/286098

PLS SIR TELL ME WHERE I AM WRONG IN MY CODE
SOLTUION MATTERS NOT TO ME
I MADE MY APPROACH SIMPLE SEARCH SPACE WILL BE 0 TO TIME TAKEN BY FASTEST COOK IN COMPLETE THE TASK DONE
MID VALUE OF TIME AND CHECK THAT IN THAT TIME WE COMPLETE THE TASK OR NOT IF YES RETURN TRUE ELSE FALSE AND CALCULATE MIN TIME USING THE VARIABLE ANS
OVERALL THREE FUNCTION
BOOL CHECK
FIND THE POSSIBLE TIME
MAIN FUNCTION

try to debug ur code on this input
1
8
1 1
correct o/p 36
ur o/p 16

VOHI BOLRAHA HUIN SIR KI MISTAKE KAISEN NIKALU CODE MEIN
SAMAJ NHI AARAHA HEIN APPROACH TOOO THEEK HEIN NA

Bhai vhi to bolra hu jo tumhara code hai use ye input pe dry run kro step by step on paper… smjh aayega and debugging skills develop hongi…

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.