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.
Python example tests are not fixed: it's still using
Test
andFind_ways
.I'm getting slight errors on the larger test cases for Java. I passed all the tests using the same approach with python, so either I'm missing some quirk in using longs or some of the Java test cases are off.
According to the tests
Find_ways(27, 0)
should return1
but is there really a way that zero numbers can be summed to 27?In the description you talk about
A
andB
. In the initial solution you usem
andn
.Please use snake_case for function names in Python, i.e.
find_ways
instead ofFind_ways
. See Kata Best Practices.Please add randomized tests. See the Python Test Suite Best Practises.
hi,
snake_case
, notcamelCase
infinity
:5 = -5+5+5 = -1000+1000+5 = ...
0
? Is0,2,3
acceptable or not? (seems to be considering the case (5,3), but that should be present in the description)