Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
It seems like your output is lacking spaces in several places, like "consecteturadipiscing" in the second row and "Aliquamnec" in the third row
I did this problem using javascript and can't seem find the difference:
✘ Failure! You returned:
Lorem ipsum dolor sit amet,
consecteturadipiscing elit.
Aliquamnec consectetur risus.
Crasvel urna a tellus dapibus
consequat.Duis bibendum
tinciduntviverra. Phasellus
dictumefficitur sem quis
porttitor.Mauris luctus
auctordiam id ultrices.
Praesentlaoreet in enim ut
placerat.Praesent a facilisis
turpis.
Expected outpout was:
Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
Aliquam nec consectetur risus.
Cras vel urna a tellus dapibus
consequat. Duis bibendum
tincidunt viverra. Phasellus
dictum efficitur sem quis
porttitor. Mauris luctus
auctor diam id ultrices.
Praesent laoreet in enim ut
placerat. Praesent a facilisis
turpis.
I thought this was an error too but in the prompt it says to ignore spaces before and after.
This comment is hidden because it contains spoiler information about the solution
tried a recursive method and passed the first two tests but got this error on the third test:
RangeError: Maximum call stack size exceeded.
Looks like I reached the maximum call stack because the input was too big.
Will do it by iteration instead!