Split Camel Case
name is a camel case name made of English letters: a new word starts at every capital letter, and the first word may start with a lowercase or a capital letter. Return the words as a list, all in lowercase, in order.
Example 1
name "myVarName"
returns ["my","var","name"]
Words my, Var, Name in lowercase.
Example 2
name "HTTPServer"
returns ["h","t","t","p","server"]
Every capital starts a word: h, t, t, p, server.
Constraints
1 <= len(name) <= 50
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More Strings problems
- String CompressionEasy
- Subtract Digit StringsEasy
- Valid Calendar DateEasy
- Valid UsernameEasy
- Well-Formed SumEasy
- Add the FractionsMedium
- Count and SayMedium
- Expand Character RangesMedium