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

Stats:

CreatedDec 31, 2016
PublishedDec 31, 2016
Warriors Trained13505
Total Skips229
Total Code Submissions22012
Total Times Completed10876
Elixir Completions233
Ruby Completions878
Python Completions4943
JavaScript Completions5004
CoffeeScript Completions14
Scala Completions21
Total Stars67
% of votes with a positive feedback rating92% of 1345
Total "Very Satisfied" Votes1163
Total "Somewhat Satisfied" Votes157
Total "Not Satisfied" Votes25
Total Rank Assessments14
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Spadavecchia Avatar
  • smile67 Avatar
  • adrian.eyre Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • KayleighWasTaken Avatar
Ad