Ad
  • Custom User Avatar

    there is broken encoding in C version of

  • Custom User Avatar

    I tried to solve it but I am having an undefined behaviour when testing, it always succeeds examples but when trying to attempt large scale test scenarios it sometimes fails the tests it made for the example test scenarios which were successful beforehand.Also when I re-attempt it ,it sometimes fails 3, sometimes 2 and sometimes 1 even though the code is untouched between attempts.

  • Custom User Avatar

    Random tests in Haskell could use some work:

    • Almost every pair of random strings contains a longest common subsequence of length 0 or 1, which allows for solutions like this.
    • The error messages for random inputs aren't very helpful:
      • The random strings use characters from the entire range of Char, leading to pairs of strings like "G8\1100651\95058\SUB\\A\b" and "\n\n"
      • When the returned value is shorter than the expected value, the error message will be something like expected: 0 but got: 3, with no indication of what the numbers indicate.
      • When the returned value is not a common subsequence, the error message is expected: True but got: False, which again does not tell the solver what the actual problem is.
  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    No random tests in

    • CS

    • Ruby

  • Custom User Avatar

    Missing sample and fixed tests for empty string in almost all languages except C, C++, JS

  • Custom User Avatar

    PHP

    • No fixed tests

    • Random tests are not random :(

  • Custom User Avatar

    The test cases for C++ should be more extensive. They don't cover many cases which will only show up for the randomized tests. Otherwise, great Kata!

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    C++ fork with some minor improvements:

    • Initial solution changed according to C++ authoring guidelines
    • Function signature is no longer enforced (required for backwards compatibility)
    • Moved the reference solution out of the global scope
    • Some minor code formatting adjustments

    Please, review and approve/reject

  • Custom User Avatar

    C:

    • the input matrices should be const-qualified
    • unhelpful assertion messages

    fixed here

  • Loading more items...