Feedback for POLTHIEF problem

Problem Link: POLTHIEF Problem - CodeChef

Feedback

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.

1 Like

You can use abs(x-y) that means the absolute difference between the police and the theif