5 kyu
The Hashtag Generator
42,412 of 105,491AKJ.IO
Description:
The marketing team is spending way too much time typing in hashtags.
Let's help them with our own Hashtag Generator!
Here's the deal:
- It must start with a hashtag (
#
). - All words must have their first letter capitalized.
- If the final result is longer than 140 chars it must return
false
. - If the input or the result is an empty string it must return
false
.
Examples
" Hello there thanks for trying my Kata" => "#HelloThereThanksForTryingMyKata"
" Hello World " => "#HelloWorld"
"" => false
Strings
Algorithms
Similar Kata:
Stats:
Created | Sep 26, 2013 |
Published | Sep 26, 2013 |
Warriors Trained | 145287 |
Total Skips | 10624 |
Total Code Submissions | 410839 |
Total Times Completed | 105491 |
JavaScript Completions | 42412 |
CoffeeScript Completions | 168 |
Ruby Completions | 3838 |
Haskell Completions | 1193 |
PHP Completions | 3562 |
Python Completions | 54633 |
Elixir Completions | 273 |
Factor Completions | 13 |
Lua Completions | 167 |
Scala Completions | 187 |
COBOL Completions | 6 |
Total Stars | 1281 |
% of votes with a positive feedback rating | 89% of 7023 |
Total "Very Satisfied" Votes | 5588 |
Total "Somewhat Satisfied" Votes | 1255 |
Total "Not Satisfied" Votes | 180 |