Problem 1124. String permutations on phone keyboard
Given a number such as 2639 return all possible string permutations using the phone-keyboard on Problem 1069.
input = 78
output = {'pt';'pu';'pv';'qt';'qu';'qv';'rt';'ru';'rv';'st';'su';'sv'}
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 1 Sep 2020
This problem needs more test cases, and include the number 1 as well as complete phone numbers.
Dyuman Joshi
on 16 Jan 2022
Test suite is updated with additional test cases.
Solution Comments
Show commentsProblem Recent Solvers23
Suggested Problems
-
Omit columns averages from a matrix
614 Solvers
-
First non-zero element in each column
925 Solvers
-
Removing rows from a matrix is easy - but what about inserting rows?
256 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1231 Solvers
-
MATCH THE STRINGS (2 CHAR) very easy
298 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!