Ive been struggling for 5 hours straight and I’m still not able to find the solution to and get an AC in the problem . You can get the question above .
Taking input as a pair .
sorting the targets center .
Applying Binary Search to get , if the shot is hit or not …
I’m Not able to get the answer , somebody Please help .