Bitcoin Forum
June 20, 2024, 12:40:29 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: STACK AND QUEUE ("Real Life Examples")  (Read 410 times)
Scream (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


U will never know the true answer, before you try


View Profile
June 21, 2015, 10:14:20 AM
 #1

Please help me to build a list of examples of stack and queue in real life situation...

Conditions:
The object concerned must only one object.
And the object must be in a container.

Example:

Example:
Queue (FIFO): The bullet in a machine gun..(you cannot fire 2 bullets at the same time)
Stack (LIFO): The tennis balls in their container.. (you cannot remove 2 balls at the same time)

I need 10 examples and explanations. Thanks in advance.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!