79487728

Date: 2025-03-05 21:27:40
Score: 2.5
Natty:
Report link

Try looping through your array and checking whether array[x+1] = array[x] + 1. If true, skip to next number. When it hits false, save the string with the two endpoints and continue. Join all the strings at the end.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alex R