Problem 1641. ABBREVIATION
Abbreviate the given string. Consider Only Capital Letters.
EXAMPLE
If input is 'Abbreviation of The Given String' then output should be 'A T G S '. Note: There should be a space at the end of the abbreviated word.
Solution Stats
Problem Comments
-
3 Comments
James
on 17 Jun 2013
In the swecond test case, you have:
x ='The Propose is to Make ABBREBIATION';
y_correct = 'T P M A ';
Are "is" and "to" to be ignored, or should the rule be "Only abbreviate words that begin with capital letters?"
Marco Riani
on 1 May 2021
In this problem it is assumed that every word in the input string with more than two letters starts with an uppercase letter. All the test cases in the examples have this convention.
Robert Wagner
on 2 Feb 2024
I hate regexes because I cannot handle them :-)
Solution Comments
Show commentsGroup

Basics on Vectors
- 11 Problems
- 7937 Finishers
- Find the sum of all the numbers of the input vector
- Select every other element of a vector
- Arrange Vector in descending order
- Inner product of two vectors
- Get the length of a given vector
- Find max
- Whether the input is vector?
- Flip the vector from right to left
- Create a vector
- Doubling elements in a vector
- Vector creation
Problem Recent Solvers124
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!