Problem 466. Compress strings (not springs)

Solution 229200

Submitted on 10 Apr 2013 by Dan
  • Size: 11
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% x='Blogs , Trendy , Cody , Contest .' y='Blogs, Trendy, Cody, Contest.' assert(isequal(cozy_cody(x),y))

x = Blogs , Trendy , Cody , Contest . y = Blogs, Trendy, Cody, Contest.

2   Pass
%% x='Trendy , Cody , Contest .' y='Trendy, Cody, Contest.' assert(isequal(cozy_cody(x),y))

x = Trendy , Cody , Contest . y = Trendy, Cody, Contest.

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!