5 kyu
The Hashtag Generator
42,798 of 106,555AKJ.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 | 146575 |
Total Skips | 10682 |
Total Code Submissions | 414824 |
Total Times Completed | 106555 |
JavaScript Completions | 42798 |
CoffeeScript Completions | 168 |
Ruby Completions | 3851 |
Haskell Completions | 1200 |
PHP Completions | 3594 |
Python Completions | 55266 |
Elixir Completions | 273 |
Factor Completions | 13 |
Lua Completions | 171 |
Scala Completions | 188 |
COBOL Completions | 7 |
Total Stars | 1293 |
% of votes with a positive feedback rating | 89% of 7076 |
Total "Very Satisfied" Votes | 5630 |
Total "Somewhat Satisfied" Votes | 1265 |
Total "Not Satisfied" Votes | 181 |