Hi I am implementing a data structure to insert ( 50000 - 100000 items )and retrive in First in First Out ( FIFO ) order. Please suggest me which one is the fastest QUEUE , STACK , LIST , MAP , MULTIMAP or any other Thanks Sandeep Naik
Hi I am implementing a data structure to insert ( 50000 - 100000 items )and retrive in First in First Out ( FIFO ) order. Please suggest me which one is the fastest QUEUE , STACK , LIST , MAP , MULTIMAP or any other Thanks Sandeep Naik
A deque (check the manual) is an ideal structure for this, as insertions and deletions at both ends of the sequence are very efficient (constant time, basically.) Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Want a Boost forum in Code Project? Vote here[^]!