Ad
  • 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

  • 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?