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.
well, from the Example given:
7, 8, 9, 10, 11
will be replaced by7-11
because it spans at least 3 numbers (here there are 5 numbers).Meanwhile,
14, 15
would not be replaced since it spans only 2 numbers.Try to reproduce the Example given, on pen and paper, using the description? Are you able to do it?
Can you get the answer for example:
1, 2, 3, 15, 16, 45, 98, 99, 100, 101, 102
?thank u Chrono79. Yes I understood. but i don't know how the ranges are generated?
Take a list and return a string of single numbers or ranges separated by commas, see the example.
hi everybody i don't understand this kata.
what do i do exactly?
my language is python3
In C: I got "double free or corruption (!prev)" error, didn't happen after resubmitting the same code though. Not sure what caused it