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.
For the sake of clarity I'd suggest making the data structure the way everybody does linked lists - use attribute next, which would contain the next node. Calling the object itself to get the next node makes no sense.
I don't think it's ok that some test cases exceed 1MB (while still allowing plenty of incorrect solutions) .. and it's kind of silly that thousands of people use only a couple handfulls of names as well.
Question: Is
O
a ssoss?Issue1: this is not tested (python), specifically that a daughter comes before the seven sons
Issue2: description is vague on what the result should be
Python:
New test framework should be used
Unnecessary logs should be removed and replaced with
it
blockstest.expect
should be revampedMissing corresponding imports
Hi, I passed two of the tree test cases. However, for the test case "DAM", my function says the shift is 8, but it's supposed to be 7. I don't know how to debug this. Why am I off by one, only for this particular test case? Thanks for your help!
From the description:
fib(10)
fib.call_count == 177 # True
fib(10)
fib.call_count == 344 # True
Actually that should be 354.
missing
in the initial code
Description should be language agnostic (The function call part should be replaced)
Haskell translation
Hopefully this translation stays within the spirit of the original kata, as the elements must be homogenous in a standard Haskell list.
In Python, it seems I had the same problem as some others as well: In the random tests, my result was sometimes off by 0.01. This happened a few times, every time on only one of the tests. I was able to pass by attempting a bunch of times though...
JS Translation
python new test framework
This comment is hidden because it contains spoiler information about the solution
Python: Test should use approximate equality (
test.assert_approx_equals
) instead of rounding +test.assert_equals
when comparing floating point numbers [Doc]python new test framework is required. updated in this fork
Loading more items...