Ad
  • Default User Avatar

    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.

  • Default User Avatar

    I thought this was an error too but in the prompt it says to ignore spaces before and after.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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!