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.
LC translation
In the SQL version the P(1) is 0 but in C# it is 1
OP solved it, closing
Approved some time ago
There is a specific kata targetting a bunch of sequences, such as Pell and Padovan, as configurations of a generalised sequence (template/generator). But for the simpler kata's, these are considered different enough.
In what manner? The two sequences are completely different.
Approved
All languages have random tests now, closing
The python translation has been updated.
Scala translation
Test case fails with below error:
Traceback (most recent call last):
File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
func()
File "/workspace/default/tests.py", line 17, in basic_test_cases
test.assert_equals(pell.get(inp), exp)
^^^^^^^^^^^^^
TypeError: Pell.get() missing 1 required positional argument: 'n'
There is a problem with the test for SQL kata. The sequence in the kata description start from 0 but in the test (expected results) starts from 1.
So in the description is P(0)=P(1)=P(2)=1
but the expected result is P(1)=P(2)=P(3)=1
The test cases don't work with the following issue:
done.
Loading more items...