Total Distance to Type a String Using One Finger
Give each key a row and column on the three-row keyboard, then add the Manhattan steps between consecutive letters.
Give each key a row and column on the three-row keyboard, then add the Manhattan steps between consecutive letters.