When expanding on a basis and printing intermediate results, incorporate previous iterations in future ones
That sounded a bit convoluted. What I mean might better be described using an actual answer. This challenge requires this specific output:
Steve Ballmer still does not know.
Steve Ballmer still does not know what he did.
Steve Ballmer still does not know what he did wrong.
Steve Ballmer still does not know what he did wrong with mobile.
One naive solution might be:
/1/Steve Ballmer still does not know//2/ what he did//3/ wrong//4/ with mobile./1.
12.
123.
1234
Notice how the pattern 1
, 12
,123
... is repeated? Well, not when you do this:
/1/Steve Ballmer still does not know//2/1 what he did//3/2 wrong//4/3 with mobile/1.
2.
3.
4.
Once again, thanks go to Martin Ender for pointing this out!