Waste Of Space

5

1 votes
Easy
Problem

Your goal is to remove consecutive multiple whitespace, spaces or tabs, from the sentences.

Example:

Input:

Cats    are   good  pets,  for  they  are  clean  and are   not  noisy  .

Output:

Cats are good pets, for they are clean and are not noisy.

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?