How to Solve Direction and Distance Problems
Solve direction and distance aptitude problems using coordinate plotting and the Pythagorean theorem, with a worked example and practice questions.
Expected Interview Answer
Direction and distance problems are solved by plotting each move on an imaginary x-y coordinate grid โ treating North/South as the y-axis and East/West as the x-axis โ then using the final coordinates and the Pythagorean theorem to find the net displacement or direction.
Start every move at the origin (0,0) and track each stated movement as a change in x (East positive, West negative) or y (North positive, South negative), rather than trying to visualize the whole path at once. Left and right turns rotate the current facing direction by 90 degrees relative to the direction just walked, not relative to true North, so track facing direction carefully turn by turn. Once every move is plotted, the net displacement from the origin to the final point is the straight-line distance, found using the Pythagorean theorem on the net x and y offsets. The final direction relative to the start is read from which quadrant the final coordinate falls in, combined with the ratio of the offsets if an angle is asked for.
- Coordinate plotting removes the need to mentally visualize the whole path
- The Pythagorean theorem gives net distance directly from x-y offsets
- Tracking facing direction turn-by-turn avoids left/right confusion
AI Mentor Explanation
A fielder chasing a ball first runs 30 metres toward the boundary, then turns and runs 40 metres along the boundary line before throwing back to the stumps. Rather than picturing the curved path, a coach analyzing the chase plots it on a grid โ 30 metres on one axis, 40 on the other โ and uses the Pythagorean theorem to find the fielder covered a straight-line distance of 50 metres from the start. Direction and distance problems use exactly this coordinate-and-Pythagorean approach instead of trying to visualize the full path.
Worked example
Moves
- 6km North
- 8km East
Coordinates
- (0,0) -> (0,6) -> (8,6)
Net distance
- sqrt(8^2+6^2) = 10km
Step-by-Step Explanation
Step 1
Set the origin
Start at (0,0) with North as +y, East as +x.
Step 2
Plot each move
Update x or y for every stated movement; track facing direction through each turn.
Step 3
Find net offsets
Compute the total x and y displacement from the origin to the final point.
Step 4
Apply the Pythagorean theorem
Net distance = square root of (x-offset squared + y-offset squared).
What Interviewer Expects
- Correct coordinate setup with consistent axis conventions
- Accurate turn-by-turn tracking of facing direction, not just position
- Correct application of the Pythagorean theorem for net distance
- Correct final direction/quadrant reasoning when an angle or bearing is asked
Common Mistakes
- Confusing left/right turns with absolute North/South/East/West directions
- Losing track of the current facing direction after multiple turns
- Adding up total distance walked instead of computing net displacement
- Sign errors when a move goes South or West (negative direction)
Best Answer (HR Friendly)
โI plot every move on a simple coordinate grid, treating North and South as the y-axis and East and West as the x-axis, starting from the origin. Left and right turns rotate my current facing direction, not true North, so I track that carefully at each turn. Once I have the final coordinates, the net displacement from the start is just the Pythagorean theorem on the x and y offsets, which is far more reliable than trying to visualize the whole path in my head.โ
Follow-up Questions
- How do you determine the final direction (not just distance) relative to the starting point?
- How would you handle a problem involving diagonal movement, like walking north-east?
- How does tracking facing direction change if the person turns clockwise versus anticlockwise?
- How would you verify your final answer using the shadow or clock-based direction tricks?
MCQ Practice
1. A man walks 3km East, then 4km North. His straight-line distance from the start is?
Coordinates (3,4); distance = sqrt(3^2+4^2) = sqrt(25) = 5km.
2. Facing North, a person turns right, then right again. Which direction do they now face?
Two consecutive right turns (90 degrees each) from North give a 180-degree turn, facing South.
3. A person walks 8km South and 6km West. Their distance from the starting point is?
Coordinates (-6,-8); distance = sqrt(6^2+8^2) = sqrt(100) = 10km.
Flash Cards
Best method for direction and distance problems? โ Plot each move on an x-y coordinate grid starting at the origin.
How do left/right turns work? โ They rotate the current facing direction 90 degrees, not true North.
How to find net displacement? โ Apply the Pythagorean theorem to the total x and y offsets from the origin.
Net displacement vs total distance walked? โ Net displacement is the straight-line gap to start; total distance walked is the sum of every leg.