Both are linear ADTs with O(1) ends, but the order of removal is opposite: a stack is LIFO (most recent first), a queue is FIFO (oldest first). Match the structure to the order your problem requires.
The core difference
text
Stack (LIFO): push 1,2,3 -> pop order 3,2,1
Queue (FIFO): enq 1,2,3 -> deq order 1,2,3
