Stack & Queue

If you make a stack of block, The last block stacks are of last in first out type of service.The last block you put on top of a stack would be the first block.
Queue example is a print queue when a lot of people are printing documents at the same printer. The documents are printed in the order(first in first out). They were sent to the print queue.

2022


© 2022. Byungchan Park. All rights reserved.