7 kyu
Next Palindromic Number.
1,635 of 3,968raulbc777
Description:
There were and still are many problem in CW about palindrome numbers and palindrome strings. We suposse that you know which kind of numbers they are. If not, you may search about them using your favourite search engine.
In this kata you will be given a positive integer, val
and you have to create the function next_pal()
(nextPal
Javascript) that will output the smallest palindrome number higher than val
.
Let's see:
For Python
next_pal(11) == 22
next_pal(188) == 191
next_pal(191) == 202
next_pal(2541) == 2552
You will be receiving values higher than 10, all valid.
Enjoy it!!
Fundamentals
Data Structures
Algorithms
Mathematics
Logic
Strings
Similar Kata:
Stats:
Created | Jan 26, 2016 |
Published | Jan 26, 2016 |
Warriors Trained | 6534 |
Total Skips | 150 |
Total Code Submissions | 10119 |
Total Times Completed | 3968 |
Python Completions | 1635 |
JavaScript Completions | 1559 |
CoffeeScript Completions | 17 |
Ruby Completions | 215 |
Haskell Completions | 102 |
C# Completions | 234 |
C++ Completions | 274 |
C Completions | 92 |
Total Stars | 82 |
% of votes with a positive feedback rating | 91% of 510 |
Total "Very Satisfied" Votes | 431 |
Total "Somewhat Satisfied" Votes | 69 |
Total "Not Satisfied" Votes | 10 |