You are given an identifier S made up only of ASCII letters (upper and lower case). Split it into words using these boundary rules, then print the words in order, all lowercase, separated by single spaces:
get|Value).HTTPResponse the run is HTTPR, and since the R is followed by lowercase e, the boundary falls right before the R: HTTP|Response). If the run is not followed by a lowercase letter (e.g. it runs to the end of S), it stays merged as one word.Line 1: the identifier S.
The words of S, all lowercase, separated by single spaces, on one line.
S ≤ 60S consists only of ASCII letters (a-z, A-Z)Example 1
Input
getUserId
Expected
get user id
Explanation
Boundaries fall before `U` and before `I`, giving words get/User/Id -> `get user id`.
Example 2
Input
HTTPStatusCode
Expected
http status code
Explanation
The acronym run `HTTPS` is followed by lowercase `t`, so the boundary falls before its last letter `S`: `HTTP|Status|Code` -> `http status code`.
Ready to solve this?
Sign in to open the editor, run your code against the sample tests, and submit against the full test suite.
Sign in to solve →