Post Undeleted by Reto Koradi
2 fix problem with multiple spaces
source | link

CJam, 11 bytes

Competing for second place in CJam after @Optimizer found a clever 10 byte solution. This is a straightforward 11 byte solution:

lS/lS%:,'*f*N*

Try it onlineTry it online

Alternate solution that uses a loop instead of the two maps, also 11 bytes:

lS/lS%{,'**N}/

Explanation for first solution:

l     Get input.
S/S%    Split at spaces.
:,    Apply length operator to each word.
'*f*  Map each length to corresponding repetitions of '*.
N*    Join with newlines.

CJam, 11 bytes

Competing for second place in CJam after @Optimizer found a clever 10 byte solution. This is a straightforward 11 byte solution:

lS/:,'*f*N*

Try it online

Alternate solution that uses a loop instead of the two maps, also 11 bytes:

lS/{,'**N}/

Explanation for first solution:

l     Get input.
S/    Split at spaces.
:,    Apply length operator to each word.
'*f*  Map each length to corresponding repetitions of '*.
N*    Join with newlines.

CJam, 11 bytes

Competing for second place in CJam after @Optimizer found a clever 10 byte solution. This is a straightforward 11 byte solution:

lS%:,'*f*N*

Try it online

Alternate solution that uses a loop instead of the two maps, also 11 bytes:

lS%{,'**N}/

Explanation for first solution:

l     Get input.
S%    Split at spaces.
:,    Apply length operator to each word.
'*f*  Map each length to corresponding repetitions of '*.
N*    Join with newlines.
    Post Deleted by Reto Koradi
1
source | link

CJam, 11 bytes

Competing for second place in CJam after @Optimizer found a clever 10 byte solution. This is a straightforward 11 byte solution:

lS/:,'*f*N*

Try it online

Alternate solution that uses a loop instead of the two maps, also 11 bytes:

lS/{,'**N}/

Explanation for first solution:

l     Get input.
S/    Split at spaces.
:,    Apply length operator to each word.
'*f*  Map each length to corresponding repetitions of '*.
N*    Join with newlines.