Given a sorted array of unique integers, return a list of strings representing the summary of consecutive ranges. For example, [0, 1, 2, 4, 5, 7] returns ['0->2', '4->5', '7'].
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.