Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
"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.
works a treat in my IDE but only passes three tests in here.
when i use the input from the failed tests, i get the right(exoected) output...confused.com lol
ps its with Java
got it thanks!
i was overthinking it
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.
that shouldnt affect it much though,should it?
particularly for a 7kyu kata
So far so good.
Now, there's 1000 tests of this magnitude.
literally a few seconds
the result is 1000000000
How fast does your solution work for
n=2_000_000_000
?ted...passed the first test and then failed with timed out error.
its literally 3 lines of code and actually efficient i think.
workd a brease in my IDE.
This comment is hidden because it contains spoiler information about the solution
my soluition works on my IDE but only works with 1 test here
wish i can post my solution here because i think the tests are wrong and the solution scope only has a certain variation of answers
8 numbers not the sum of the numbers
same here
tested my code on my IDE and its working fine but not on here..Strange