Swiggy Phone Code Letter Combinations
Swiggy Phone Code Letter Combinations
MediumRecursion0% accepted
Swiggy delivery codes map to phone keypad letters (like T9). Given a string of digits 2-9, return all possible letter combinations using phone keypad mapping.
Approach
Generate all letter combinations for phone number digits (backtracking).
Input
23
Output
["ad","ae","af","bd","be","bf","cd","ce","cf"]
More Recursion problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards