The test set gives a false impression as to Matlab's large number precision. For the case of x = 'antidisestablishmentarianism';
y_correct = [2684347378225474636827426476 13474859120710];
The eps(2684347378225474636827426476) is 5.4976e+11. An input of 'antidisestablishmentarianist' will return y_correct = [2684347378225474636827426478 13474859120710]; However, the ism y_correct would score the ist correct as Matlab cannot distinguish the two huge values. A vector output of the first part is one method to get unique solutions. A second method would require uint64 and having multiple values. I like the pairing of encryption and decryption challenges.
I understand. Thanks for the comment.
Reverse Run-Length Encoder
Project Euler: Problem 1, Multiples of 3 and 5
Cody Computer Part 5 - Guess the Name of Cody Computer
Permute diagonal and antidiagonal
Repeat string n times
Van Eck's Sequence's nth member
Find two triangular numbers whose sum is input.
Duration of a trip in minutes
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office