Kebab Case Converter Medium

+100 PTS

Before you start the test, check out our tutorial challenge

  • TYPE CODE PRACTICE CHALLENGE
  • LANGUAGES C++, C#, JAVA, JAVASCRIPT AND 6 MORE
    LANGUAGES C++, C#, JAVA, JAVASCRIPT, PHP, PYTHON2, PYTHON, RUBY, SWIFT, TYPESCRIPT
  • TIME ~25MIN

Kebab Case Converter

Challenge outline

Hello and welcome to the challenge!


Write a code converting the given camel case string to its kebab case version. Remember about removing all digits.

Examples

  • solve('someCamelCaseName') -> 'some-camel-case-name'
  • solve('camelCase2') -> 'camel-case'

Input

  • camel case string containing letters and digits

Output

  • kebab case string consisting of lowercase letters and dashes

Constraints

  • 1 < length of the input string < 200


You can solve this programming contest in C#, C++, Java, Ruby, JavaScript, Python, PHP and many more languages. If you want, you can also take part in other August 2019 competitions. Below you can find some of them:



Have fun and good luck! :)