Question Description
Given a 2D keyboard represented by a m × n character matrix, a maximum jump distance, and a target word, determine if you can type the word by moving between characters without exceeding this distance. The distance here is calculated as the Manhattan distance: .
Constraints:
- Jump distance ≥ 0
- The word can have up to 1000 characters.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected