hide([1, 3, 3]) hide([1, 3, 7]) [1, 1, 3, 3, 3, 7] -------- [0, 0, 1, 2, 2, 3, 4, 5]