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

Stats:

CreatedSep 26, 2013
PublishedSep 26, 2013
Warriors Trained145287
Total Skips10624
Total Code Submissions410839
Total Times Completed105491
JavaScript Completions42412
CoffeeScript Completions168
Ruby Completions3838
Haskell Completions1193
PHP Completions3562
Python Completions54633
Elixir Completions273
Factor Completions13
Lua Completions167
Scala Completions187
COBOL Completions6
Total Stars1281
% of votes with a positive feedback rating89% of 7023
Total "Very Satisfied" Votes5588
Total "Somewhat Satisfied" Votes1255
Total "Not Satisfied" Votes180
Ad
Contributors
  • AKJ.IO Avatar
  • jhoffner Avatar
  • user578387 Avatar
  • bkaes Avatar
  • GiacomoSorbi Avatar
  • sajadtorkamani Avatar
  • anter69 Avatar
  • andreapt82 Avatar
  • docgunthrop Avatar
  • BrightOne Avatar
  • Voile Avatar
  • Madjosz Avatar
  • akar-0 Avatar
  • Kacarott Avatar
  • tri@ Avatar
  • Just4FunCoder Avatar
  • benjaminzwhite Avatar
  • fcr-- Avatar
  • KayleighWasTaken Avatar
Ad