Why do we need Deque data structures in the real world? -


can give me example of situation deque data structure needed?

note - please don't explain deque is?

when modeling kind of real-world waiting line: entities (bits, people, cars, words, particles, whatever) arrive frequency end of line , serviced @ different frequency @ beginning of line. while waiting entities may decide leave line.... etc. point need "fast access" insert/deletes @ both ends of line, hence deque.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -