Exercises/#135 Letter Combinations of a Phone Number
#135

Letter Combinations of a Phone Number

MediumπŸ”€ Strings
80 XP

Problem

Given a string of digits 2-9, return all possible letter combinations that the number could represent (like a phone keypad).

Examples

Input: digits = '23'
Output: ['ad','ae','af','bd','be','bf','cd','ce','cf']
stringbacktrackingrecursion
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

135 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features