> If you push, then pop, you should have the same data as you started with.
That's the case for a LIFO queue, but not a FIFO queue. Both commonly use the push/pop nomenclature.
That's the case for a LIFO queue, but not a FIFO queue. Both commonly use the push/pop nomenclature.
The terminology I've seen people use for FIFO instead is enqueue() and dequeue(). Or push_front(), pop_back(). Etc.