Acronym of Words
Words in phrase are separated by single spaces. Return the acronym: the first letter of each word, in order, as an uppercase letter, joined into one string.
Example 1
phrase "portable network graphics"
returns "PNG"
P, N, G.
Constraints
1 <= len(phrase) <= 100- Letters and single spaces, no space at the start or end
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More Strings problems
- Alternating CaseBeginner
- Capitalize the TitleBeginner
- Center in a FieldBeginner
- Chunks From the LeftBeginner
- Consecutive CharactersBeginner
- Count Capitalized WordsBeginner
- Count Differing PositionsBeginner
- Count Prefixes of a Given StringBeginner