Suggestion for a Data Structure!
Posted
by Jay
on Stack Overflow
See other posts from Stack Overflow
or by Jay
Published on 2010-06-01T05:15:24Z
Indexed on
2010/06/01
5:23 UTC
Read the original article
Hit count: 434
c
|data-structure
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.
© Stack Overflow or respective owner