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
-
Select every other element of a vector
36051 Solvers
-
270 Solvers
-
Sum of first n positive integers
620 Solvers
-
Is this triangle right-angled?
6529 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2135 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.