Available question text
Given a permutation of the 26 lowercase letters representing a single-row keyboard and a target word, compute the total time to type the word starting at index 0 where moving between keys costs the absolute difference of their indices; return the sum of those distances.
Related questions
Continue with questions that share topics or the same question type.
- Keyboard Row
Coding
- 2 Keys Keyboard
Coding
- 4 Keys Keyboard
Coding
- Biggest Single Number
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1165. Single-Row Keyboard
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source