Problems
Contests
Account
Problems
> Tidy the Spaces > Editorial
Tidy the Spaces — Solution & Editorial
Back to the Problem
Tokenize on whitespace and rejoin with single spaces.
Complexity:
O(length)
×
Refer Job