The keys (numbered
Note: The keys
, , , and do not map to any letters.
In the above mapping, the key
Any mapping is possible as long as each letter is assigned to exactly one key, and keys can be mapped to any number of distinct letters.
Given a string, word, consisting of lowercase English letters, return the minimum number of pushes needed to type it after remapping the keys.
Note: No mapping is provided in the input. You can devise any mapping if needed.
Constraints:
word.length
word consists of only lowercase English letters.
The keys (numbered
Note: The keys
, , , and do not map to any letters.
In the above mapping, the key
Any mapping is possible as long as each letter is assigned to exactly one key, and keys can be mapped to any number of distinct letters.
Given a string, word, consisting of lowercase English letters, return the minimum number of pushes needed to type it after remapping the keys.
Note: No mapping is provided in the input. You can devise any mapping if needed.
Constraints:
word.length
word consists of only lowercase English letters.