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

Filed under:
|

I have the following requirements for a data structure:

  1. Direct access to an element with the help of a key (Key will be an integer, range is also same as integer range)
  2. Avoid memory allocation in chunks (Allocate contigous memory for the data structure including the data)
  3. 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

Related posts about c

    Related posts about data-structure