I have the following requirements for a data structure:
- Direct access to an element with the help of a key (Key will be an integer, range is also same as integer range)
- Avoid memory allocation in chunks (Allocate contigous memory for the data structure including the data)
- Should be able to grow the data structure size dynamically
Which data structure would you suggest?
Any pointers in the direction will also be of help.