6 kyu
Palindrome Builder
194wontonst
Description:
Task
Given a string, add the fewest number of characters possible from the front or back to make it a palindrome.
Example
For the input cdcab
, the output should be bacdcab
Input/Output
Input is a string consisting of lowercase latin letters with length 3 <= str.length <= 10
The output is a palindrome string satisfying the task.
For s = ab
either solution (aba
or bab
) will be accepted.
Algorithms
Similar Kata:
Stats:
Created | Apr 13, 2017 |
Published | Apr 13, 2017 |
Warriors Trained | 737 |
Total Skips | 15 |
Total Code Submissions | 2791 |
Total Times Completed | 194 |
Python Completions | 194 |
Total Stars | 29 |
% of votes with a positive feedback rating | 93% of 63 |
Total "Very Satisfied" Votes | 55 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 10 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |