Problem 466. Compress strings (not springs)
Please remove excess space, limit one space between others, and no space before punctuation marks.
- For example, 'Trendy , Cody , Contest .'
- should be ---- 'Trendy, Cody, Contest.'
Solution Stats
Problem Comments
-
1 Comment
goc3
on 12 Dec 2016
Additional test cases were provided.
Solution Comments
Show commentsProblem Recent Solvers217
Suggested Problems
-
Calculate the Levenshtein distance between two strings
1500 Solvers
-
Convert a vector into a number
612 Solvers
-
Change the sign of even index entries of the reversed vector
616 Solvers
-
Who is the smartest MATLAB programmer?
784 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
863 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!