← Questions

Minimum Manhattan distance between X and Y in a matrix

0
GleanCodingLast asked Sep 2026

Find the smallest Manhattan distance between any X cell and any Y cell in a matrix. Reported on 1point3acres' Glean bank; reconstructed in our own words.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding