The marketing team are spending way too much time typing in hashtags.
Let's help them with out own Hashtag Generator!
Here's the deal:
- If the final result is longer than 140 chars it must return false.
- If the input is a empty string it must return false.
- It must start with a hashtag (#).
- All words must have their first letter capitalized.
Example Input to Output:
" Hello there thanks for trying my Kata" => "#HelloThereThanksForTryingMyKata"
" Hello World " => "#HelloWorld"
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #93 Number Format (6kyu) (0) | 2018.08.08 |
---|---|
codewars #92 Bit calculator (5kyu) (0) | 2018.08.07 |
codewars #91 Find X (6kyu) (0) | 2018.08.06 |
codewars #90 Cure Cancer (6kyu) (0) | 2018.08.01 |
codewars #89 Mexican Wave (6kyu) (0) | 2018.07.31 |