Problem Link: POLTHIEF Problem - CodeChef
Feedback
Wrong description based on provided test case, Police cover 1unit of distance per second
Problem Link: POLTHIEF Problem - CodeChef
Wrong description based on provided test case, Police cover 1unit of distance per second
@sainichirag
I think the time req to catch will be the absolute difference between their distance divided by their relative speed which is 2-1=1.
so the answer would always be the absolute difference between their distance.
You can use abs(x-y) that means the absolute difference between the police and the theif