3
string alphabetBoardPath(string target) {9
for (int i = 0; i < target.length(); i++) {12
curRow = (target[i] - 'a') / 5;13
curCol = (target[i] - 'a') % 5;14
if (curRow == 5 and abs(curCol - prevCol) > 0) {17
if (curRow - prevRow > 0) {18
ans += string((curRow - prevRow), 'D');20
ans += string((prevRow - curRow), 'U');22
if (curCol - prevCol > 0) {23
ans += string((curCol - prevCol), 'R');25
ans += string((prevCol - curCol), 'L');27
if (((target[i] - 'a') / 5) == 5 and abs(curCol - prevCol) > 0) {