please correct my code and send it ASAP
please help to solve
your help would be appericiated
Please help to find mistakes in my code and correct is
hi @harryson ,i have corrected ur code here,
https://ide.codingblocks.com/s/193237
Some mistake in ur code:
- high should be n
- u forgot about m, in line 12 ,instead of if ((n - mid) * y >= mid * x) it should be if (m+(n - mid) * y >= mid * x)
- u should not return immediately after ur if condition as optimal ans will still be possible in range mid+1 to high
Refer the code above
In case of any doubt feel free to ask 
If you got your answer mark your doubt as resolved
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.