InterviewBit Academy is now Scaler!
Learn Tech Skills from Scratch @ Scaler EDGE

Cats and a Square

Suppose that there is a unit square. There are four cats sitting at the four different corners of the square. Each of those cats start chasing the other cat in the clockwise direction. The speed of the cats are same and constant and they continuously change their direction in a manner that they are always heading straight to the other cat. How long will it take for the cats to catch each other?

Assume that each cat is running at 1 unit speed.

Sign Up
to access hints and editorial solutions for Cats and a Square


Click here to start solving coding interview questions