Cody

Solution 1195514

Submitted on 22 May 2017 by Ayanle Aden
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))

AIter = 124 i = 1 AIter = 124 545 i = 2 b = 545

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

AIter = 150 i = 1 AIter = 150 201 i = 2 AIter = 150 201 303 i = 3 b = 303

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

AIter = 291 i = 1 AIter = 291 483 i = 2 AIter = 291 483 867 i = 3 AIter = 291 483 867 1635 i = 4 AIter = 291 483 867 1635 6996 i = 5 b = 6996

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

AIter = 178 i = 1 AIter = 178 1049 i = 2 AIter = 178 1049 10450 i = 3 AIter = 178 1049 10450 15851 i = 4 b = 15851