Solution: Minimum Number of Pushes to Type Word II

Let’s solve the Minimum Number of Pushes to Type Word II problem using the Knowing What to Track pattern.

Statement

The keys (numbered 22 to 99) on a telephone keypad are associated with specific groups of lowercase English letters. Below is an example of how letters can be mapped to keys on a telephone keypad.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.