Cody

Solution 409225

Submitted on 24 Feb 2014 by Abdullah Caliskan
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
%% a = 124; b = 545; assert(isequal(find_palindrome(a),b))

r2 = 421 k1 = 421 d = 545 r2 = 545 aa = 545 r2 = 545 aa = 545 r2 = 545 aa = 545 r2 = 545 aa = 545

2   Pass
%% a = 150; b = 303; assert(isequal(find_palindrome(a),b))

r2 = 051 k1 = 51 d = 201 r2 = 102 k1 = 102 d = 303 r2 = 303 aa = 303 r2 = 303 aa = 303 r2 = 303 aa = 303

3   Pass
%% a = 291; b = 6996; assert(isequal(find_palindrome(a),b))

r2 = 192 k1 = 192 d = 483 r2 = 384 k1 = 384 d = 867 r2 = 768 k1 = 768 d = 1635 r2 = 5361 k1 = 5361 d = 6996 r2 = 6996 aa = 6996

4   Pass
%% a = 178; b = 15851; assert(isequal(find_palindrome(a),b))

r2 = 871 k1 = 871 d = 1049 r2 = 9401 k1 = 9401 d = 10450 r2 = 05401 k1 = 5401 d = 15851 r2 = 15851 aa = 15851 r2 = 15851 aa = 15851