FunctionRacerProblemsRace

Split Camel Case

EasyStringsPython, JavaScript, TypeScript, Java, C++

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

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Strings problems