Question: You are at a library with a self - checkout kiosk. The kiosk allows you to scan and bag your items one by one. When
You are at a library with a selfcheckout kiosk. The kiosk allows you to scan and bag your items one by one. When it's time to pay, which data structure best represents the order in which you will pay for your items?
Stack LIFO You pay for the most recently scanned item first
Queue FIFO You pay for the items in the order you scanned them
Linked List The order doesn't matter, you can pay for any item at any time
Tree There's a hierarchical structure to how you pay for items
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
