I would like to know what is the best data structure for storing the following information:
Let's say we have this string:
1.2.0.0.15.4.22.3.0.0.0.2
The string will also count values with more than 1 one digit. The dots aren't actually necessary, it's just to make clearer what I want.
where every digit in the string represents a counter for something we have to count every minute. So, the 1st minute we counted 1, the 2nd 2, the 3rd 0 and so on. There is no predefined size and also I'd like to make insertions or alterations only when I count something, so the zero's will be actually represented in the structure by nulls. The counting will be incrementally.
Initially the structure will be empty for the first minute.