MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Given a number such as 2639 return all possible string permutations using the phone-keyboard on Problem 1069.

input = 2639

output = {'amdw' 'amdx' 'amdy' ... 'andy' 'andz' ... 'body' 'bodz' ... 'cody' ... 'cofz'}

20 correct solutions
15 incorrect solutions

Last solution submitted on Nov 03, 2014

1 player likes this solution

2 Comments

Aurelien Queffurust
on 18 Dec 2012

This solution which is leading solution is not correct when the input x is a single number. For example if x = 2 , you expect a,b,c instead you only return a

Takehiko KOBORI
on 18 Dec 2012

Thank you for your advice.
I correct it.

1 Comment

sea knowledge
on 18 Dec 2012

why the given result is in the format of cell,not char,why 'amdw'~='admw',which my matlab only give the latter,rather than the former one

1 Comment