Ad
  • Custom User Avatar

    "Works on my IDE" is not a kata issue. The problem is that you just have hardcoded two sample test cases. Your method should work with arbitrary DNA strings as input.

  • Custom User Avatar

    Non-timing out (i.e. correct) solution is still on 7 kyu level, so in case of this kata, it can.

    Check how long your solution takes for 1000 tests with inputs of magnitude 2_000_000_000 when run locally, and if it's too slow, think how to improve it.

  • Custom User Avatar

    So far so good.
    Now, there's 1000 tests of this magnitude.

  • Custom User Avatar

    How fast does your solution work for n=2_000_000_000?

  • Custom User Avatar

    Please use the Spoiler flag when you post code. Other than that I'm pretty sure your code is wrong. Read the kata again: "...except numbers with a 5 in it." What would the range from 49 to 60 result in?