Phone Keypad Word Filter

Asked at LinkedIn · Coding Questions · Difficulty: Medium · Last asked Oct 14, 2026

On a phone keypad the digits map to letters as `2=abc 3=def 4=ghi 5=jkl 6=mno 7=pqrs 8=tuv 9=wxyz`. Pressing a digit sequence could type many words; given a list of dictionary words, find the ones that the key presses `digits` spell.

Loading the problem…