Sobes.tech
Middle+

// An array of non-negative numbers without repeating elements. // It needs to be converted into a string, collapsing neighboring numbers in the sequence into ranges. // // Example: [1, 4, 5, 2, 3, 9, 8, 11, 0, 13] -> "0-5,8-9,11,13" func listToRanges(items []int) string { // TODO: implement this return "" }