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.
WOOOOOOOW! That's Great
Bro That's Impossible, i can't even solve hamming(1000) without getting a timeout error. (JavaScript)
Thanks!
Nice Kata
same problemo
This comment is hidden because it contains spoiler information about the solution
That's a problem with your code, not a kata issue.
That may be so, but Codewars is a kind of sport. Performance katas are like a race.
Solution which takes a minute, 1 minutes, or an hour to run is not "true" if it is possible to solve the problem in a second. "returns correct answer" is not the only criteria of correctness of a solution.
yeah but the most important thing is that the solution is true.
[Python] Unfortunately the serious test always aborts with an error message because of the test code:
/workspace/default/tests.py:7: DeprecationWarning:
np.bool
is a deprecated alias for the builtinbool
. To silence this warning, usebool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.bool_
here.Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
sieve = numpy.ones(n//3 + (n%6==2), dtype=numpy.bool)
Traceback (most recent call last):
File "/workspace/default/tests.py", line 54, in
result = f_sol(n)
File "/workspace/default/tests.py", line 36, in f_sol
max_even_digs = max(resDict.keys())
TypeError: 'int' object is not callable
Well, a solution must run fast enough to pass the test.
That rule is the same for all Katas.
You need more efficient code.
Your solution being too slow is hardly a kata issue.
it has too large test cases, and it causes me a timeout errors althought my solution is right.
Nice kata, Thank You.
Just Solved it
Loading more items...