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.
New Rust translation. The previous one had an outdated Rust version and could not be approved anymore.
Traceback (most recent call last):
File "/workspace/default/tests.py", line 1, in
from solution import square_sums
ImportError: cannot import name 'square_sums' from 'solution' (/workspace/default/solution.py)
Still accepts wrong answers though: non-complete chains instead of False.
I have a Python solution that is very fast on my computer. I use a decorator to cache some results. I do this without importing any modules, but the code doesn't work on CodeWars. What am I doing wrong?
Don't sort the output as is. You're breaking solutions with precomputed/cached results, and all the user will see on failure is a useless error message simply saying
"sums of adjacent numbers should be squares"
with no information about what's actually happening.Which complexity is enough to solve this kata?
This comment is hidden because it contains spoiler information about the solution
Ruby 3.0 should be enabled, read this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
This comment is hidden because it contains spoiler information about the solution
I don't know what to do with this error. can you help me? What is the reason?
Traceback (most recent call last):
File "main.py", line 26, in
doTests()
File "main.py", line 18, in doTests
a,b = actual[:-1],actual[1:]
TypeError: 'bool' object is not subscriptable
Code work pretty good, I passed all tests but because of error i can't pass this kata
Passed: 18 Failed: 0 Exit Code: 1
This comment is hidden because it contains spoiler information about the solution
C# translation: https://www.codewars.com/kumite/5dba7b42ac629a001175c934?sel=5dba7b42ac629a001175c934