In the square grid shown on the left, a person standing at P2 position is required to move to P5 position.
The only movement allowed for a step involves, "two moves along one direction followed by one move in a perpendicular direction". The permissible directions for movement are shown as dotted arrows in the right.
For example, a person at a given position Y can move only to the positions marked X on the right.
Without occupying any of the shaded squares at the end of each step, the minimum number of steps required to go from P2 to P5 is
Tap to open full sizeFigure description
Left: a 5x5 square grid with columns labelled 1 to 5 across the top and rows labelled P, Q, R, S, T down the left side. Shaded (dark) squares: P1, P4, Q3, R1, S2, S5, T3. A smiley face marks the start at P2. Right: a 5x5 grid with the person Y at the centre square (row 3, column 3), with a cross of four arrows (up, down, left, right) drawn beside it. Dotted arrows from Y go two squares along one direction and then one square perpendicular, ending at eight squares marked X: (row 1, col 2), (row 1, col 4), (row 2, col 1), (row 2, col 5), (row 4, col 1), (row 4, col 5), (row 5, col 2), (row 5, col 4). Caption: Example: Allowed steps for a person at Y.
- (A)
4
- (B)
5
- (C)
6
- (D)
7