Problem 57615. About jokes (and compression)
An argument can be made about jokes. The shorter they are, the funnier. Further explained here: https://en.wikipedia.org/wiki/Humour#Formula.Thus, jokes are data compression made art.
You will be given a single text for the whole problem. Your goal is to make it shorter so it would take less space.
Write a function that takes no argument. It always returns the same character array. You will find that exact array in the Test Suite. However, the content of your MATLAB file must be shorter than the source material. The number of characters you type counts and you must save at least 25%.
Find patterns and/or useful documentation on your own. There are multiple ways to go about it. I know you will come up with a great one-liner. Have fun!
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
Omit columns averages from a matrix
579 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
362 Solvers
-
Make a random, non-repeating vector.
8347 Solvers
-
Magic is simple (for beginners)
8263 Solvers
-
Count letters occurence in text, specific to words with a given length.
151 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!