What is the best data-structure for storing elements which will be retrieved only once and then dele

Posted by Jay on Stack Overflow See other posts from Stack Overflow or by Jay
Published on 2010-06-07T14:14:22Z Indexed on 2010/06/07 14:32 UTC
Read the original article Hit count: 169

Filed under:
|

I want to design a data-structure for storing elements, which will be retrieved only once after insertion and will be deleted after that.

I can't use a stack or queue as the order of retrieval is not guaranteed.

[EDIT] - I would like to use contigous memory (I would prefer to avoid doing malloc every now and then) and also I would prefer searchability also.

© Stack Overflow or respective owner

Related posts about c

    Related posts about data-structures