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
Post a Comment