← Accenture questions
CodingModerate

Matrix Problem (Minimum Distance)

Filed under Accenture

Given a matrix and a starting position, calculate the minimum distance required to move from that position to the center of the matrix using valid grid movements (e.g., Manhattan distance).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accenture questions

Collected from public candidate posts and coding forums. Updated Nov 2026.