Question: what is the similarities between queue and stack?
Answer: SIMILARITY BETWEEN QUEUE AND STACK : The Stack and Queue both are the Non-primitive data structures. Stack and queue is linear data structures they both stores sequentially. Insertion and Deletion operation can be performed on Stack as well as in queue.