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
-
1792 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1988 Solvers
-
501 Solvers
-
10101 Solvers
-
Implement a bubble sort technique and output the number of swaps required
381 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.