Ad
  • Default User Avatar

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

  • Custom User Avatar

    I got as far as reading about numerical calculus and Lambert W functions before I realized a constant-time solution probably wasn't going to happen.

  • Default User Avatar

    Not a correct solution: "aaaabb"

  • Custom User Avatar

    It's too late to change the kata design, it's been solved many times. (Also it teaches new c0ncept about arguments of functions, so why not?!)

  • Custom User Avatar
  • Custom User Avatar
  • Default User Avatar

    I will be happy to help you, but don't want to kill all the fun with this kata, not yet.
    I did not test your solution, but it can be that it's not sorting what should be sorted.
    And, in random tests, do you get errors, or timeouts?

  • Custom User Avatar

    I've tried my best ... but I have no idea what's the goal of this task.

    I understand, that it's supposed to look like a riddle, but in my opinion Katas on this platform should be clear on what are the requirements and what's the goal.

    I thought I've understood the task and passed the training tests, but then random test came and I have no idea what am I expected to do.

    Please, provide a more clear explaination and/or an example.

  • Custom User Avatar

    Damn it, I thought I could complete it with a O(1) solution by coming up with a formula and I've wasted a lot of time. Well, lesson learned...

  • Custom User Avatar

    In C# version there is a problem with random tests.

    Input: "Up!X!!!!!yTKmj!!!!gFlG!!RX!!!MA!!L rC!!XO"

    Expected: "UpXyTKmjgFlGRXMAL rCXO"

    Actual: "Up!X!!!!!yTKmj!!!!gFlG!!RX!!!MA!!L rC!!XO"

    Description states that "Words are separated by spaces in the sentence.", so in this case the expected value is incorrect.

  • Custom User Avatar

    I think that the description is waay to long to describe just a simple task task to generate array of even numbers up to n.

  • Custom User Avatar

    Simple kata, but you should emphasize more, that the input array will contain ONLY plural words ending ONLY on "s" and "es".

  • Custom User Avatar

    It's a pretty interesting kata and unique, that's for sure. The problem is that the description is quite confusing. You should provide some details about how the function should work, that would be much easier to make some tests, that would prove that the implementation is wrong.

    Also, in C# tests break, when I call function with null as a parameter, I think you should probably look into that, because the first parameters, that would come to my mind when testing using string as paarameter is string.Empty and null.

  • Custom User Avatar

    Thanks for pointing out the little error with the tests.
    But your solution was actually wrong.
    I've edited the tests to now display the correct error message

  • Custom User Avatar

    There appears to be an issue with tests on C# translation.

    Expected: "-1795367280--1795467271"
    But was: "2499600016-2499500025"

    The input number was 99991 and my result was the same as the one provided in sample test. Seems like an issue with integer rollover.

  • Loading more items...