I have an application that stores values in an array but not all locations will be used and I don't know in advance which, or how many will be used though I will know a maximum size.. The full array occupies too much memory so I need a way to reduce this.
What would you reccomend for this situation?
What would you reccomend for this situation?