Beta

Smallest palindrome divisible by the input

Description:

A palindromic number is a number that is the same read from left to right and read from right to left. A few examples are 1, 22, 343 or 38766783.

In this kata you have to calculate the smallest multiple of an input n that is a palindromic number. n is a positive integer that is not divisible by 10. Examples:

(smallest-palindrome 1) => 1
(smallest-palindrome 16) => 272
(smallest-palindrome 17) => 272
(smallest-palindrome 111) => 111
smallestPalindrome(1) => 1
smallestPalindrome(16) => 272
smallestPalindrome(17) => 272
smallestPalindrome(111) => 111
Algorithms
Fundamentals

Stats:

CreatedAug 26, 2016
PublishedAug 26, 2016
Warriors Trained155
Total Skips28
Total Code Submissions143
Total Times Completed48
Clojure Completions6
Java Completions44
Total Stars1
% of votes with a positive feedback rating89% of 31
Total "Very Satisfied" Votes26
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes2
Total Rank Assessments30
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • ThorstenLudwig Avatar
Ad