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.
.
a = 0
andc = 0
, along with its combination with other values should be added, because at the time of writing most of the solution will fail ona = 0
.They are now.
None of these are necessarily issues on their own, but I think they should be addressed before approval (this can be closed if someone disagrees):
There really should be more sample tests, or at least a batch of random tests with smaller inputs. I am currently failing about 9 random tests but debugging is effectively impossible.
Hi,
Nice one.
I get it, although I do think the notation used (
a(n)
etc) is confusing.Essentially we are adding absolute functions. The result of this addition can be described as a series of linear functions, limited to a certain range (which is the information we are to return).
For a visual example see here (wolfram alpha) how the result of the addition can be seen as three seperate line segments.
I do think that a graphical explanation in the description might help a lot for this kata.
I don't get what the task is... :/ Is that me or...?