You are writing a Python e-commerce program that reminds users of the contents of their wish list in the order that they put the items in. Which data structure best simulates the behavior you want to achieve?
1
Expert's answer
2018-07-12T10:37:08-0400
The queue is a basic data structure in which new elements are inserted at the back but old elements are removed from the front. Thus, the queue structure is the best solution for the task.
Comments
Leave a comment