Ad
  • Default User Avatar

    I propose add test cases with 3 spaces, and 4, 5 spaces between words. Almost all solutions do not save 3 spaces between words.

  • Custom User Avatar

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

  • Custom User Avatar

    The test cases are wrong. It shows an expected output with numbers that aren't in the original matrix, besides i had to click on the attempt button several times without changing the code until it finally marked my solution as correct.

  • Default User Avatar

    Whats happening? What did i do wrong?

    Expected: "elbuod decaps sdrow", instead got: "elbuod decaps sdrow"

    Expected: "ehT kciuq nworb xof spmuj revo eht yzal .god", instead got: "ehT kciuq nworb xof spmuj revo eht yzal .god"

  • Default User Avatar

    expected:<[ ]> but was:<[]> i am unable to get this test case help!

  • Custom User Avatar

    All spaces in the string should be retained.

    Languages are inconsistent w.r.t. handling of adjacent, leading, and trailing spaces. Some languages test for those, some do not, and some generate such inputs by pure accident.

    Languages should be unified and either all of them should have corresponding tests (also random), or such inputs should not be generated. If tests would contain extensive test cases for spaces, they most probably should take care to include inputs with double (or more) leading spaces, and double (or more) trailing spaces.

  • Custom User Avatar

    Language: C++
    Test suit missing the required headerstd::string

  • Default User Avatar

    Gday,

    Struggling to handle the string with double spacing, i have tried using find() function with if statements but to no avail.
    Can anyone give me a hint of what direction i need to take? all other strings have passed, its just this double spacing thats messing me up!

    Cheers!

    Edit: I seem to have found a solution! the .split() needed an argument that i will avoid mentioning here, but if anyone could explain why this works it would be greatly appreciated! i kind of stumbled upon it and dont really understand why it solved the problem...

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar
    • NO random tests

    • Missing fixed tests for Y, Draw && In progress

    • This one should be reranked or sent back to beta (so don't resolve this until it's done)

  • Custom User Avatar
    • No random tests in CS & JS

    • No sample tests in CS & JS

    • Test.expect should be replaced

    • JS Node 18. should be enabled

  • Custom User Avatar

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

  • Custom User Avatar

    The tests don't check for multi-char glyphs. This means that naive implementations (most, if not all submitted, including mine) would corrupt the strings with multi-char glyphs in them by reversing order of chars in them. Either add test cases for those or add the assumption that input strings are ASCII in instructions.

  • Custom User Avatar

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

  • Loading more items...