6 kyu
Simple Fun #78: Build Palindrome
422 of 817myjinxin2015
Description:
Task
Given a string str
, find the shortest possible string which can be achieved by adding characters to the end of initial string to make it a palindrome.
Example
For str = "abcdc"
, the output should be "abcdcba"
.
Input/Output
[input]
stringstr
A string consisting of lowercase latin letters.
Constraints:
3 ≤ str.length ≤ 10
.[output]
a string
Puzzles
Similar Kata:
Stats:
Created | Feb 3, 2017 |
Published | Feb 3, 2017 |
Warriors Trained | 1842 |
Total Skips | 35 |
Total Code Submissions | 4502 |
Total Times Completed | 817 |
JavaScript Completions | 296 |
C# Completions | 86 |
Python Completions | 422 |
Ruby Completions | 55 |
Total Stars | 40 |
% of votes with a positive feedback rating | 97% of 184 |
Total "Very Satisfied" Votes | 174 |
Total "Somewhat Satisfied" Votes | 10 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 9 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |