Ad
  • Custom User Avatar

    Performance tests are ineffective - I was able to get my extremely naïve solution to pass by repeatedly pressing "Attempt" about 10 times or so. General rule of thumb: performance tests are usually suited for distinguishing between solutions of different complexity classes, e.g. O(n^2) vs O(n) and are usually meaningless from a micro-optimization perspective.

  • Custom User Avatar

    If the Submit tests enforces performance constraints on the user solution then it should be explicitly stated in the Kata Description that performance is required - simply saying that "Feel free to implement any optimization technique you see fit" is not enough.

  • Custom User Avatar

    Hi @larshb,

    Welcome to the club of Kata authors! :D While you may be inclined to author a Kata whenever an idea pops up in your mind and publish it for the rest of the community to enjoy, you should be aware that published Kata are expected to meet strict expectations in order to pass the testing stage and leave Beta.

    Please do read through the article linked above before continuing on your journey of authoring Kata. We're looking forward to more Kata authored by you once you have read the article mentioned ;)

    Cheers,
    @donaldsebleung

  • Custom User Avatar
        elif op == '+': m[p] = (m[p]+1) % 0xff
        elif op == '-': m[p] = (m[p]-1) % 0xff
    

    Seriously? You belive that 256 % 0xff == 0?

  • Custom User Avatar

    Duplicate.