Ad
  • Default User Avatar

    well, from the Example given: 7, 8, 9, 10, 11 will be replaced by 7-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 ?

  • Custom User Avatar

    thank u Chrono79. Yes I understood. but i don't know how the ranges are generated?

  • Custom User Avatar

    Take a list and return a string of single numbers or ranges separated by commas, see the example.

  • Custom User Avatar

    hi everybody i don't understand this kata.
    what do i do exactly?
    my language is python3

  • Custom User Avatar

    In C: I got "double free or corruption (!prev)" error, didn't happen after resubmitting the same code though. Not sure what caused it