Time limit error for 1 test case
Do I need to use any other method
KTH ROOT problems
Since the constraints mentioned in the question are large , we should use an optimized method to approach this problem. A divide and conquer technique ( Some kind of modified Binary Search ) is the way to go.
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.