Cody

Problem 1130. Challenging perms function!

Solution 3033523

Submitted on 2 Oct 2020 by Rafael S.T. Vieira
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 'm'; y_correct = [6 1]; assert(isequal(encryptt(x),y_correct))

2   Pass
x = 'go'; y_correct = [46 3]; assert(isequal(encryptt(x),y_correct))

3   Pass
x = 'cody'; y_correct = [2639 99]; assert(isequal(encryptt(x),y_correct))

4   Pass
x = 'hydroglycerin'; y_correct = [4937645923746 2616254]; assert(isequal(encryptt(x),y_correct))

5   Pass
x = 'antidisestablishmentarianism'; y_correct = [2684347378225474636827426476 13474859120710]; assert(isequal(encryptt(x),y_correct))

6   Pass
x = 'there must be an efficient technique'; y_correct = [84373 56 6878 22 23 5 26 2 333424368 13108 832464783 5378]; assert(isequal(encryptt(x),y_correct))

Suggested Problems

More from this Author68

Community Treasure Hunt

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

Start Hunting!