Ad
  • Custom User Avatar

    depends on how you define "whitespace". In the description, those are intended to only be " ", not line feeds "\n". So the expected result is consistent with the description (means the input contains several consecutive line feeds)

  • Custom User Avatar

    For Java, the last part of the details reads: "Any whitespace at the end of the line should also be stripped out."
    My solution does away with any whitespace at the end of the line, but one of the tests fails, see below:

    org.junit.ComparisonFailure: expected:<...
    e

    e[

    ]> but was:<...
    e

    e[]>"

    Should this test not pass on account of the above-mentioned part of the requirements?
    Thanks!