8 kyu
Ensure question
233 of 10,876Spadavecchia
Description:
Given a string, write a function that returns the string with a question mark ("?") appends to the end, unless the original string ends with a question mark, in which case, returns the original string.
For example (Input --> Output)
"Yes" --> "Yes?"
"No?" --> "No?"
Fundamentals
Similar Kata:
Stats:
Created | Dec 31, 2016 |
Published | Dec 31, 2016 |
Warriors Trained | 13505 |
Total Skips | 229 |
Total Code Submissions | 22012 |
Total Times Completed | 10876 |
Elixir Completions | 233 |
Ruby Completions | 878 |
Python Completions | 4943 |
JavaScript Completions | 5004 |
CoffeeScript Completions | 14 |
Scala Completions | 21 |
Total Stars | 67 |
% of votes with a positive feedback rating | 92% of 1345 |
Total "Very Satisfied" Votes | 1163 |
Total "Somewhat Satisfied" Votes | 157 |
Total "Not Satisfied" Votes | 25 |
Total Rank Assessments | 14 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |