Cody

Solution 1832625

Submitted on 31 May 2019 by Satvik Choudhary
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))

sz = 3 ans = 1 3 sz = 3 ans = 1 3 ans = 2 2 ans = 3 1 b = 545

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

sz = 3 ans = 1 3 sz = 3 ans = 1 3 sz = 3 ans = 1 3 ans = 2 2 ans = 3 1 b = 303

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

sz = 3 ans = 1 3 sz = 3 ans = 1 3 sz = 3 ans = 1 3 sz = 4 ans = 1 4 sz = 4 ans = 1 4 ans = 2 3 ans = 3 2 ans = 4 1 b = 6996

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

sz = 3 ans = 1 3 sz = 4 ans = 1 4 sz = 5 ans = 1 5 sz = 5 ans = 1 5 ans = 2 4 ans = 3 3 ans = 4 2 ans = 5 1 b = 15851