Minimum Manhattan Distance Between 'X' and 'Y' in Matrix
Asked at Glean · Coding Questions · Difficulty: Easy
Given a 2D string matrix containing only the characters `'X'`, `'O'`, and `'Y'`, calculate the minimum Manhattan distance between any `'X'` and any `'Y'`.
Loading the problem…