This all about transcripting a text message. If the input string is: s1 = 'My name is Sourav Mondal', then the output is: s2 = 'MUYRNAAVMMEOINSDSAOL'. Just divide the string from middle, according to no. of alphabets & then take alphabets/letters alternatively from the two strings!!
Solution Stats
Problem Comments
6 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers229
Suggested Problems
-
1838 Solvers
-
Make a random, non-repeating vector.
11168 Solvers
-
556 Solvers
-
515 Solvers
-
6256 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Sourav: The function name and input parameter are incorrect in the test suite.
I cleaned up the calling syntax in the test.
you don't specify what to do when there's an odd number of letters
Venu: There is nothing to do with the name & parameter names. Many have submitted the correct solution!
@bmtran: u have to be intelligent enough to handle both the even & odd cases!! That's the challenge!
Sourav: Not any more by the time you made your comment, because Ned Gulley fixed the calling syntax in the test suite - see comment 2.