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.
In Python, at least, the built-in title method doesn't quite do the job here
I am not sure what exactly you mean by "partial messages", but there is this note in the description:
Doesn't it says at least 3 numbers there? Meaning three or more? IMHO you're saying the same, but I can be wrong and maybe one way of writing it is clearer than the other.
That means
[1, 2, 4, 5, 6]
is"1,2,4-6"
and not"1-2,4-6"
.-10, -9 and -8 form this range:
"-10--8"
. I think you're confusing what should be consecutive as a number and as an element in the list.11 and 14 aren't consecutive numbers, so, obviously, the range ends in 11.
There is no mistery there, it says at least 3 numbers, there can be more.
I'd close this, because I think it all comes to your misunderstanding of the instructions, which are fine be me.
The goal is to group all numbers adjacent in the list which differ at most by 1. In your example of
[-9, -8, -6]
, two last numbers do not differ by 1. If you have an idea for a better wording, feel free to suggest one.