Ad
  • Default User Avatar

    indeed, the PHP, Haskell and C# version have undue (since this kata is about how to define mutually recursive functions, not how to optimize the sequence generation) performance tests

    there is an open issue regarding this

  • Default User Avatar

    Can you make it work with big numbers? How big? :)

  • Default User Avatar

    loaded-icosahedron, that exercise requires another kata just to decode what it is saying xD

  • Custom User Avatar

    Hi. As you can see below, this issue has been opened 3 years ago by Unamed, first about Haskell (disproportionate requirements with original kata, and relatively to a 6kyu). Other users then reported that the same problem existed in C# and PHP. I close the issue since it's useless to have duplicate ones. Hopefully one day someone makes new versions more reasonnable in those languages.

  • Default User Avatar

    Попробуй на PHP, врядли пройдёшь первые два теста с этим простым алгоритмом =)

  • Default User Avatar

    The classical implementation didn't work in PHP as it was keeping failing during stress tests. I had to come up with new ideas in order to make the algorithm more efficient and hoping that it will pass the stress tests. Even my last most efficient solution was failing on "testStressedRandom". So I decided to implement the same algorithm in C++.
    I was shocked when I saw the other's solutions, basically copy/paste of the description of the problem, which obviously would be the first thing you would implement.
    So, my question is this, why the PHP requirements related to efficiency are so high? Why the requirements for C++ are so low that even the copy/paste from the problem description will work?

  • Default User Avatar

    Find any value in the sequence in milliseconds. E.g. with n = 2,140,000,000.

  • Default User Avatar

    Anybody tried to complete this in PHP?
    All the tests have been passed but I'm having issues with the last "testStressedRandom", it returns an error about memory size exhausted. I have tested my solution which runs in less then a few milliseconds and the memory peak usage is 443320B, which is not that much.
    Could it be that the problem is within the "testStressedRandom" itself for the PHP version?