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:

CreatedSep 26, 2013
PublishedSep 26, 2013
Warriors Trained146575
Total Skips10682
Total Code Submissions414824
Total Times Completed106555
JavaScript Completions42798
CoffeeScript Completions168
Ruby Completions3851
Haskell Completions1200
PHP Completions3594
Python Completions55266
Elixir Completions273
Factor Completions13
Lua Completions171
Scala Completions188
COBOL Completions7
Total Stars1293
% of votes with a positive feedback rating89% of 7076
Total "Very Satisfied" Votes5630
Total "Somewhat Satisfied" Votes1265
Total "Not Satisfied" Votes181
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