There is a special single row keyboard layout represented by a string keyboard of length
Given the string keyboard and a string word, return the total time taken to type all characters of word sequentially.
Constraints:
keyboard.length
keyboard contains each English lowercase letter exactly once in some order.
word.length
word[i] is an English lowercase letter.
There is a special single row keyboard layout represented by a string keyboard of length
Given the string keyboard and a string word, return the total time taken to type all characters of word sequentially.
Constraints:
keyboard.length
keyboard contains each English lowercase letter exactly once in some order.
word.length
word[i] is an English lowercase letter.