Before reading this blog i kindly ask you read the problem statement: https://vjudge.net/problem/UVA-714
I implemented a binary search solution for this problem and i am getting wrong answer verdict when i submitted.
My code
If you encounter any problems in my solution whether they are about logic or implementation, let me know.
Thanks in advance