I have a large array with a range of integers that are mostly continuous, eg 1-100, 110-160, etc. All integers are positive. What would be the best algorithm to compress thi
compress the string "1-100, 110-160" or store the string in some binary representation and parse it to restore the array