GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • All topics
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 20 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
Log inStart free
Gamified challengesKeypad Words

Gamified challenge · Backtracking

Keypad Words

On an old phone keypad each key 2–9 also stands for letters: 2 abc, 3 def, 4 ghi, 5 jkl, 6 mno, 7 pqrs, 8 tuv, 9 wxyz. A phone number spells a word by choosing one letter for each digit, in order.

Write keypadWords(digits) (Python: keypad_words(digits)) that returns every lowercase word the digits can spell, each once, in any order. If digits is empty, return an empty list.

Example: digits = "23" gives ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].

Sign in to play Keypad Words

This game is part of the paid plans. Sign in, then pick a plan to write your answer, watch it play out, and step through the algorithm with its guide.

Sign in with Google

or log in with email · create an account