Alphabet Board Path
On an alphabet board, we start at position (0, 0), the top-left corner, and we can move to adjacent cells in any of the four directions: up, down, left, or right.
Given a target word, return the minimum total distance to move from the initial position to the final position by moving through the board.
The alphabet board is represented by a 2D array of lowercase English letters, with 'a' at coordinate (0, 0), 'b' at coordinate (0, 1), and so on.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)