Capitalized Words
Easy · Strings
capitalized title-cases each word. Extra spaces should collapse to one (split on whitespace, then join).
Write titleWords(_:).
Next: Rectangle Area
Easy · Strings
capitalized title-cases each word. Extra spaces should collapse to one (split on whitespace, then join).
Write titleWords(_:).
Next: Rectangle Area