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.
Can we really say that the specification is complete? It seems that the function that returns
0
only when the list is empty and the maximum otherwise (i.e. there is no special case about negative integers) obeys the same specification.I found this problem very interesting (I have never attented a logic class, so I always enjoy this kind of exercise where I can learn a bit more about the topic).
But I must admit I find the exercises too short w.r.t. the length of the "details" section. Would it be possible to reason more about the system (in this kata, or another)? That would allow to better understand the system, and have more fun playing with it.
This comment is hidden because it contains spoiler information about the solution