How to Solve Direction Sense and Bearing Problems
Solve direction sense aptitude problems using axis tracking and the Pythagorean theorem, with a worked example and practice questions with answers.
Expected Interview Answer
Direction sense problems are solved by plotting each move on an imaginary compass grid, tracking net displacement along the North-South and East-West axes separately, and applying the Pythagorean theorem to find straight-line distance from the start.
Treat every left or right turn as a 90-degree rotation relative to the direction you are currently facing, not relative to a fixed compass direction, and update your heading before advancing the next segment. Break each leg of the journey into its East-West component and North-South component, sum each axis independently, and the final position is simply the net East-West value paired with the net North-South value. The straight-line distance from start to end is then the hypotenuse of a right triangle formed by those two net components, computed via the Pythagorean theorem. A short table of position after each move prevents the most common error, which is losing track of which way you are currently facing after a sequence of turns.
- Axis-by-axis tracking avoids directional confusion
- Pythagorean theorem gives displacement in one final step
- A position table catches turn-tracking errors early
- Generalizes to any number of turns or bearing changes
AI Mentor Explanation
A fielder jogging from the boundary rope toward the stumps, then cutting left toward point, then right toward the pitch, ends up somewhere on the ground that is not simply the sum of the distances walked in a straight line. To find how far the fielder actually is from the boundary rope, you track the net movement along the pitch-length axis and the width axis separately, then combine them with the Pythagorean theorem. Direction sense problems on paper work exactly this way: sum each axis independently before computing the final straight-line gap.
Worked example
Leg 1
- 8 km North
- N-S total: +8
Leg 2 (turn right)
- 6 km East
- E-W total: +6
Leg 3 (turn right)
- 3 km South
- N-S total: +5, dist = sqrt(61) ≈ 7.81 km
Step-by-Step Explanation
Step 1
Fix a starting heading
Assume North is up unless the problem states otherwise, and note the starting facing direction.
Step 2
Update heading at each turn
Left and right turns are relative to the current facing direction, not fixed compass directions.
Step 3
Track net axis totals
Add each leg's distance to the North-South total or East-West total based on the current heading.
Step 4
Apply the Pythagorean theorem
Final distance from start = sqrt((net N-S)^2 + (net E-W)^2).
What Interviewer Expects
- Correct relative interpretation of left/right turns as the walk progresses
- Separate, accurate tracking of North-South and East-West totals
- Correct final application of the Pythagorean theorem
- Ability to state final bearing/direction, not just distance, when asked
Common Mistakes
- Treating left/right turns as fixed compass turns instead of relative to current heading
- Adding all leg distances directly instead of decomposing into two axes
- Sign errors when a later leg opposes an earlier leg on the same axis
- Forgetting to take the square root after summing squared axis totals
Best Answer (HR Friendly)
“I track two running totals as I read through the moves, one for North-South and one for East-West, updating my facing direction every time there’s a left or right turn. Once I’ve read the whole sequence, I have a net value on each axis, and the final distance from the starting point is just the hypotenuse of those two numbers using the Pythagorean theorem.”
Follow-up Questions
- How would you find the final bearing, not just the distance, from the starting point?
- How does the approach change if the problem specifies compass bearings like N30E instead of left/right turns?
- How would you solve this problem if some legs were diagonal instead of axis-aligned?
- How would you verify your answer using a quick sketch during an interview?
MCQ Practice
1. A man walks 10 km North, then 6 km East, then 10 km South. How far is he from his starting point?
Net North-South = 10 − 10 = 0; net East-West = 6. Distance = sqrt(0^2 + 6^2) = 6 km.
2. Facing North, a person turns right, then right again, then left. Which direction do they now face?
North, turn right, gives East. East, turn right, gives South. South, turn left, gives East. Final facing direction is East.
3. A woman walks 5 km West, then 5 km South, then 5 km East. How far and in which direction is she from the start?
Net East-West = -5 + 5 = 0; net North-South = -5 (South). Distance = 5 km due South of start.
Flash Cards
How do left/right turns work in direction sense problems? — They are relative to the current facing direction, not a fixed compass direction.
How do you compute final displacement? — Sum North-South and East-West legs separately, then apply the Pythagorean theorem to the two net totals.
What causes the most errors in these problems? — Losing track of the current facing direction after multiple turns.
What does a canceling leg do? — A leg opposite an earlier leg on the same axis subtracts from that axis's net total.